Charles Lowell
b29c94f087
add pre-emption APIS
...
v8 4.5 has very convenient APIs for interrupting potentially long
running JavaScript code. This exposes those APIs to Ruby code so that it
can place its own limits on the CPU resources consumed by V8.
2015-08-14 16:09:40 +03:00
Charles Lowell
5e21f1deae
remove calls to Dispose in specs
2015-07-28 18:29:38 +03: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
8693cddf0a
add Context#dispose() for explicit teardown.
2012-06-19 04:32:58 -05:00
Charles Lowell
9b461020a5
bad match.
2012-06-08 08:32:30 -05:00
Charles Lowell
ae448321e8
constants for Undefined, Null, True, False
2012-06-08 03:56:04 -05:00
Charles Lowell
155cd68d20
don't autoscope if it's a free-form spec.
2012-06-06 03:55:10 -05:00
Charles Lowell
a78f6736a9
only auto-scope for low level c++ specs
2012-06-06 03:10:20 -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
e911c4f745
fix syntax incompatible with 1.8.7
2012-05-17 11:15:30 -05:00
Charles Lowell
0800d82988
Create HandleScopes, Externals from Ruby.
2012-05-09 14:46:07 -05:00
Charles Lowell
8201268a84
bring in the basic extension template and test suite
2012-05-09 14:46:04 -05:00
Charles Lowell
9cb4f1c7d2
begin internal rewrite.
2012-05-09 14:44:55 -05:00
Charles Lowell
d2017c673d
extract memory specs into separate folder. Memory is notorious to test, and is unreliable depending on the platform.
2011-05-03 11:13:55 -05:00
Charles Lowell
624ce94568
add preliminary support for weak backreferences.
2011-04-13 16:20:48 -05:00
Charles Lowell
1593a644f7
rspec2 needs less shenanigans.
2010-10-26 14:41:33 -05:00
Charles Lowell
9c4537b32c
update to rspec 2.0
2010-10-26 10:49:23 -05:00
Charles Lowell
3974fc1f7c
Add experimental jasmine support
2010-06-03 14:05:37 +03:00
Charles Lowell
ae9c88bad4
keep ruby objects alive as long as V8 has a reference to them, even if ruby does not currently have a reference. rethrow ruby exceptions as javascript exceptions.
2010-05-26 19:54:56 +03:00
Charles Lowell
14edf2b0ff
move ruby function invocation and property lookup into ruby
2010-05-22 09:23:22 +03:00
Charles Lowell
5b2c88002c
move callbacks into ruby code. make sure handle scopes are everywhere. raise exception when context needs to be open rather than segfault in certain cases.
2010-05-20 12:08:17 +03:00
Charles Lowell
39fc3faa6b
add rputs() method for debugging with rspec and textmate
2010-05-20 12:08:16 +03:00
Charles Lowell
3762909be4
change Context::GetCurrent() to GetEntered(), since that's what's meant most of the time anyway. Give objects a cleaner references to their wrapping context.
2010-05-20 12:08:16 +03:00
Bill Robertson
707916fe03
tweaks
2009-11-14 00:05:52 -05:00
Charles Lowell
fabd535875
add specs for type conversion
2009-10-14 22:51:50 -05:00