kares
23c617345e
correct explicit Ruby equality == and eql? (JRuby 1.7.1 compat)
2012-12-05 09:32:39 +01:00
kares
0a38ab3f0a
function's return value should be converted to Ruby
...
(when invoked Ruby #call style)
2012-09-08 15:38:01 +02:00
kares
30f109bf65
fn#apply error handling + include the latest specs
...
for 6c962f7db0
2012-05-30 07:42:46 +02:00
kares
9e872e7d36
inspect seems to print non-sense for native rhino objects
2012-05-29 12:23:55 +02:00
kares
6c962f7db0
make sure thrown values are correctly raised
...
e.g. from `function foo() { throw 'bar' }`
specs for this coming with redjs v0.4.6
2012-05-29 12:23:42 +02:00
kares
a38575a3d0
functionName typo
...
introduced with 6a0032e946
2012-05-29 11:52:33 +02:00
kares
6a0032e946
JSError updates
...
- make sure cause always points to native rhino cause (closes #19 )
- correct javascript_backtrace to be an array (just like backtrace)
- use a slicely customized stack trace rendering by default
2012-05-18 21:46:27 +02:00
kares
af4a05c874
avoid using instance variables with java class
...
this is due JRuby 1.7.0 throwing warnings https://github.com/jruby/jruby/wiki/Persistence on org.mozilla.javascript.Context
2012-05-18 16:49:40 +02:00
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