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

12 commits

Author SHA1 Message Date
Georgy Angelov
a926860150 Lock inside the C methods and store isolate with every ref 2015-04-04 14:04:57 +00:00
Georgy Angelov
d0f568cf18 Add strings and some conversion options for values 2015-03-21 09:51:17 +00:00
Georgy Angelov
d1e9088cf0 Port a ton of the original ext classes
You can now create a JS object from Ruby-land without segfaulting
2015-03-20 20:47:57 +00:00
Georgy Angelov
2fca33f9d0 Remove old ext files and spec & link to the new V8
The functionality will be added (that is, if I don't get bored) one thing at a time with the spec.
If you want to test, point the libv8 gem (in Gemfile) to its trunk branch & my changes at stormbreakerbg/libv8 @ trunk.

What works currently is getting V8 to initialize, say its version and create a new Isolate.
2015-03-18 21:57:39 +00:00
Georgy Angelov
654b808ac5 Use #around for creation of context for C examples
This fixes segmentation fault in the tests as extending the examples in a before block with override of `#instance_eval` seems to not work.

Also, the context wrap is now opt-in with a helper method, instead of opt-out and relying on `#described_class` (which has slightly different behavior in RSpec 3).

Tested on Ruby 2.1.5 and RSpec 2.99.2.
2015-03-15 18:27:19 +00:00
Charles Lowell
0d29c7fc15 keep a back reference to object wrappers 2012-06-08 14:14:38 -05:00
Charles Lowell
8976cb9fc7 Auto-lock, Auto-scope all specs, except where not. 2012-06-05 08:00:04 -05:00
Charles Lowell
687faa4865 add C::ContextHelper to wrap native test cases 2012-05-25 16:01:31 -05:00
Charles Lowell
72068651f9 eschew heap allocated accessor callbacks
This changes the accessor code to push as much
object allocation onto Ruby as possible. Instead
the C++ layer acts strictly as glue using stack
allocated variables to convert v8 value to ruby
objects at the moment it passes them off to Ruby.
2012-05-21 16:36:19 -05:00
Charles Lowell
e0cb61ea82 fix 1.8.7 hash ordering problem 2012-05-18 12:44:53 -05:00
Charles Lowell
125a37a5d3 sanity check for enumeration Object properties 2012-05-18 09:49:44 -05:00
Charles Lowell
a2cf25b00f implement C::Object#SetAccessor() 2012-05-09 14:46:07 -05:00