kares
05ece36c5d
handle Rhino's 64K code generation (method) limit on the fly
...
simple retry running the failed compilation in interpreter mode
2012-12-05 10:00:41 +01:00
kares
9402a7795d
allow to set javascript version programatically - globally
...
also allow reading it from system properties by default : `java.lang.System.setProperty("rhino.js.version", "1.7")`
(Java 7 embedded-rhino scripting engine compatible)
2012-12-03 17:30:14 +01:00
kares
8dc0781dbe
allow to set optimization level globally
...
also allow reading it from system properties by default :
`java.lang.System.setProperty("rhino.opt.level", "1")`
(Java 7 embedded-rhino scripting engine compatible)
2012-12-03 17:21:23 +01:00
kares
036e38cd49
support for a timeout limit when executing JS within a context
2012-02-15 11:08:48 +01:00
kares
b4ac2b3339
extract out instruction limiting into a separate Context impl that does tracking itself - make a native context factory shared by default + allow a factory option when creating a context
2012-02-15 11:04:14 +01:00
kares
bc3ca955cc
fix passing scope to when delegating to access + add an attribute aware access impl; make sure Ruby::Object has correct parent scope set
2012-01-07 17:01:38 +01:00
kares
11f4df4be9
RubyObject/RubyFunction review + specs for better integration when some ruby needs to enter Rhino's JS world ...
2011-12-08 17:28:23 +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
kares
032666b074
support for setting JS interpreter version
2011-12-07 12:50:43 +01:00
kares
55bda78f6f
refactor JavaScript module to JS (J might be a bit confusing with Java) and make JRuby's javasupport module constant warnings in specs go away
2011-12-07 12:41:18 +01:00
Charles Lowell
436c7ad129
fix error with poorly named constants
2011-11-28 15:23:30 -06:00
Alex Wolfe
11d294da4c
Added spec for scoping an evaluation to a ruby object.
2011-09-21 17:07:34 -05:00
Charles Lowell
efa9a75d37
extract specs that can be shared into a common repository so that it can be used by other implementations
2009-12-15 10:33:55 +02:00
Charles Lowell
5a9bb13d9f
allow you to hold onto a context while it isn't open
2009-12-02 00:35:16 -06:00
Charles Lowell
e072c82420
support for loading javascript from file referenced by name
2009-11-20 09:58:15 -06:00
Charles Lowell
2a1bdf7859
add ability to evaluate javascript bytes straight off an IO object without slurping it completely into memory
2009-11-20 09:38:31 -06:00
Charles Lowell
88707e09e2
allow for evaluating javascript in the context of a ruby object
2009-11-13 12:09:54 -05:00
Charles Lowell
4611dee3ff
update version and readmes. bump version number
2009-11-11 21:19:27 -05:00
Charles Lowell
6239a0ba60
greatly simplify the rhino interface by tieing context to a scope
2009-11-11 01:50:36 -05:00
Charles Lowell
728a0b36ae
limit instruction counts
2009-11-10 09:52:03 -05:00
Charles Lowell
cb516973af
to_h to_json for native object
2009-11-08 23:25:25 -05:00
Charles Lowell
9276bb69a6
clarify wording of context example
2009-10-09 18:36:21 -05:00
Charles Lowell
1c1f7f91df
extract mapping of javascript -> ruby and ruby -> javascript into wormhole module
2009-10-06 13:20:37 -05:00
Charles Lowell
33ef76f85e
add native object wrapper for easy access to js objects from ruby
2009-10-06 08:52:45 -05:00
Charles Lowell
b04ca685cc
basic javascript access from jruby
2009-09-24 19:08:40 -05:00