kares
a2e907ae25
avoid the dynamic interface proxy creation on factory.call(ContextAction) ( fixes #30 )
2014-07-15 18:20:50 +02:00
kares
9e4ae2e1a6
use Rhino.warn explicitly otherwise it's a Kernel.warn
2012-12-05 13:41:26 +01:00
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
f5fda2a794
context did not yield
2012-04-13 19:29:15 +02:00
kares
14420d225c
typo: "restricted" should have been "restrictable"
2012-04-12 20:13:22 +02:00
kares
3f68bb00dc
1.9 compatibility fixes
2012-02-15 12:36:16 +01:00
kares
98cc3d8e8b
raising from limit writers when a context is non-restrictable seems less confusing
2012-02-15 11:46:36 +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
7e3c2e8e1d
JS === for wrapped object (now unbound) methods; a better optimization_level writer and adding a reader as well
2012-01-10 17:24:12 +01:00
kares
b59f15acbe
specs and javascript_backtrace fix for JSError + deprecate JavascriptError
2011-12-09 11:28:27 +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
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
3e31402a77
add referential integrity to objects being passed into Rhino.
2011-10-06 06:09:00 -05:00
Nick Sieger
0be2d0ee2d
Change from internal 'Java::JavaLang' to recommended 'java.lang'
...
The JRuby team recommends using the package/method-call-style
notation. The camel-cased module name mapping is not intended for
public consumption.
2011-06-08 15:01:27 -05:00
renier
265b8d1414
Add setter for rhino optimization level
2010-08-13 03:45:11 +08:00
Renier Morales
1e16042ec0
Adding require for stringio
2010-08-11 04:18:41 +08:00
Scott Fleckenstein
c250fa314e
add more sandboxed java packages
2010-06-18 20:11:57 +08:00
Charles Lowell
bd3acebdc5
change exception name to be compliant with the redjs spec
2010-01-18 13:56:41 +02:00
Charles Lowell
b483beb493
update redjs to conform with v8 version. quick and dirty eval()
2010-01-18 13:06:38 +02: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
9ca6bb7374
add docs for the options to open
2009-12-02 00:46:51 -06: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
3335adc55f
add rdocs for native_object
2009-11-15 22:46:24 -05:00
Charles Lowell
b5fb736cfd
add documentation for Context and NativeFunction
2009-11-15 21:56:31 -05: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
d3cc953c14
support for native arrays coming in and out of javascript. Support for calling ruby functions
2009-11-11 21:12:20 -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
138d41dc98
add support for embedding ruby instances
2009-11-09 10:45:23 -05:00
Charles Lowell
cb516973af
to_h to_json for native object
2009-11-08 23:25:25 -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
20493a6c48
cut the docs out of the private constructor
2009-09-25 08:46:01 -05:00
Charles Lowell
b04ca685cc
basic javascript access from jruby
2009-09-24 19:08:40 -05:00