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

24 commits

Author SHA1 Message Date
Tony Strauss
4d5e2d8896 Make hashes nested within arrays also converted to native JavaScript objects. 2012-04-10 08:00:47 +02:00
kares
e0cb01526a UnboundMethod should be converted to a Ruby::Function 2012-01-13 16:20:37 +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
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
21f62eb245 add a ruby class wrapper - acts as a JS contructor, reimplement RubyObject#get to treat accessors as properties but otherwise arbitrary methods with arity == 0 should rather act as functions, move all ruby wrappers to a single unit 2011-12-12 22:17:42 +01:00
kares
d3d6928a46 Ruby Time -> JS Date conversion 2011-12-09 19:02:58 +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
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
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
c0884cdbbf always return the same JS proxy for the same Proc,Method 2011-10-06 06:38:27 -05:00
Charles Lowell
3e31402a77 add referential integrity to objects being passed into Rhino. 2011-10-06 06:09:00 -05:00
Charles Lowell
478d81831f properly map Time objects. 2011-10-05 16:49:51 -05:00
Stephen Lewis
ed652c2224 Improve marshalling of Ruby hashes to JS 2011-06-28 14:35:10 +01:00
Charles Lowell
890a112e89 make the case results line up. 2010-08-11 09:56:41 -05:00
Renier Morales
08166f1b9c Incoming regular expressions were being converted to the wrong type. Fix
for invalid character error in the step matching.
2010-08-11 22:55:18 +08:00
Scott Fleckenstein
549d8d1da8 properly convert array contents to ruby as well 2010-06-18 20:11:59 +08: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
138d41dc98 add support for embedding ruby instances 2009-11-09 10:45:23 -05:00
Charles Lowell
f7d0f719b5 map org.mozilla.javascript.Undefined to ruby nil 2009-10-09 18:36:42 -05:00
Charles Lowell
1c1f7f91df extract mapping of javascript -> ruby and ruby -> javascript into wormhole module 2009-10-06 13:20:37 -05:00