1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00
therubyracer/spec
Charles Lowell 250b8e7d50 Embed lambdas and procs into V8::Context
This adds the ability embed basic Ruby code blocks into a javascript
context and invoke it.

  cxt = V8::Context.new
  cxt['twice'] = lambda {|str| "#{str}#{str}"}
  cxt.eval('twice("hi")') #=> "hihi"

Note that error handling is not accounted for yet. If an exception
happens inside the called proc, it will cause terrible, awful things
to happen because portions of the C++ stack will not be unwound leaving
the Isolate in an indeterminate state.
2015-08-12 21:02:39 +03:00
..
c Implement the rest of the Object mehods: 2015-08-02 16:57:00 +00:00
mem add back the basics of memory testing. 2015-07-28 18:02:58 +03:00
support Add rspec matchers for Maybe and (Strict)?Equals 2015-08-01 20:21:36 +00:00
v8 Embed lambdas and procs into V8::Context 2015-08-12 21:02:39 +03:00
c_spec_helper.rb Add rspec matchers for Maybe and (Strict)?Equals 2015-08-01 20:21:36 +00:00
redjs_spec.rb implement exception handling. 2012-06-14 22:34:38 -05:00
spec_helper.rb remove calls to Dispose in specs 2015-07-28 18:29:38 +03:00
threading_spec.rb Added support for context timeouts 2013-12-09 12:15:03 +11:00