1
0
Fork 0
mirror of https://github.com/rubyjs/therubyrhino synced 2023-03-27 23:21:34 -04:00
Commit graph

14 commits

Author SHA1 Message Date
kares
3f68bb00dc 1.9 compatibility fixes 2012-02-15 12:36:16 +01:00
kares
4f2c48d0b1 what goes in should come out, fixes putting a proc property :
`o.inc = proc { |i| i + 1 }; o.inc.call(1) == 2`
2012-01-21 12:47:23 +01:00
kares
28a9322a3e #apply seems as a better name for #methodcall + add some notes on #call semantics in JS vs. Ruby 2012-01-13 10:19:02 +01:00
kares
176bf1ffe9 introduced Function#bind for the Ruby side;
setting this to nil does not end up as undefined - there seems no way to pass undefined as a function context thus pass the global object (mirroring non-strict mode)
2012-01-11 08:28:06 +01:00
kares
a6acb32a5b delegate (Ruby wrapper) caching to JS::Context - to behave somehow 'more' correctly with multiple context sessions 2012-01-10 10:52:53 +01:00
kares
07f7d5a5b2 delegate to aliased JS::Function#call when invoking a function property (thus it works happily besides Ruby's #call); changed this from current scope to null when invoking fn from Ruby 2012-01-10 10:43:55 +01:00
kares
0e2274a685 re-add #methodcall for JS functions accessed from Ruby; use JRuby's include_package in favor of import 2011-12-14 11:49:35 +01:00
kares
cdf770d95b pass a scope to initialize for all ruby wrapper classes and attempt to initialize parent scope and prototype whenever it is present; override BaseFunction's #getLength and #getFunctionName for RubyFunction 2011-12-12 22:34:27 +01:00
kares
38d40f6e95 distinguish JS Object functions/properties when acessed from the Ruby side 2011-12-12 22:12:12 +01:00
kares
98178598b0 confusing Context resolution during jsapi specs - thus be explicit about JS::Context 2011-12-09 19:19:55 +01:00
kares
69b239cbf9 "int" property resolution for JS objects 2011-12-09 19:04:23 +01:00
kares
167e089722 fix NativeObject#[]= JS constant resolution + change getCurrentContext when converting scoped values 2011-12-09 19:02:08 +01:00
kares
0d4d17a0a9 place To module methods on Rhino itself - move deprecations (for previous version compatibility) into one place with warnings 2011-12-09 07:52:47 +01:00
kares
0941f932ed avoid NativeFunction/NativeObject wrapping and rather customize Rhino's objects to feel Ruby-ish ... 2011-12-07 19:59:39 +01:00