Jean Rouge
42475db467
Making it possible to set V8 runtime flags
...
Only caveat: such flags can only be set before the V8 platform gets initialized.
Comes in handy to deactivate for example V8's aggressive use of `pthread` which
somehow seems to not play too nice with Unicorn:
```
MiniRacer::Platform.set_flag! '--noconcurrent_recompilation'
MiniRacer::Platform.set_flag! '--noconcurrent_sweeping'
```
Also protecting the platform initialization with a mutex, not sure
how/why current concurrent tests never seem to hit bugs without that mutex.
Added just one test on the new `MiniRacer::Platform.set_flag!` method, and
unsure how to make other tests without making tests run in order (bad),
given that flags can only be set before anything else is done.
2016-06-22 13:36:57 -07:00
Jean Rouge
edeaa9d183
Adding a `warmup` method on snapshots
...
Which maps to V8's `V8::WarmUpSnapshotDataBlob` (see
http://v8.paulfryzel.com/docs/master/classv8_1_1_v8.html#abee465cc67755cfaacf0297c3093fb47 )
Added unit tests on it.
2016-06-17 09:42:46 -07:00
Jean Rouge
6063b137ed
Making it possible to use V8 snapshots
...
With proper unit tests
2016-06-16 15:24:50 -07:00
Sam
3be48fffea
version bump
2016-06-15 11:23:41 +10:00
Sam Saffron
f01067f4ff
Add location for ParseErrors, clean up message and backtrace for Runtime errors
...
fixes #10
2016-05-26 11:30:03 +10:00
Sam
9acac94539
bump version add changelog
2016-05-19 22:16:15 +10:00
Sam
3545eafd95
allow attaching on undefined nested objects
...
context.attach("foo.bar.foo", proc{"bar"})
context.eval("foo.bar.foo()") => "bar"
2016-05-19 13:11:39 +10:00
Sam Saffron
87e0e1ba09
FEATURE: allow attaching functions on nested objects
2016-05-17 11:34:24 +10:00
Sam Saffron
d6c173f533
Implement #load (initial trivial implementation)
2016-05-17 10:47:21 +10:00
Sam
1adb2f9c6d
bump version
2016-05-17 07:31:41 +10:00
Sam
bf60ed2caf
bump version
2016-05-14 19:08:16 +10:00
Sam
d91fbf239c
bump version
2016-05-14 17:19:50 +10:00
Sam
6b269c3f0f
make a beta gem
2016-05-14 17:07:42 +10:00
Sam Saffron
3ab1a87be3
remove warning
2016-05-12 11:38:43 +10:00
Sam Saffron
b2473d7dc0
return a special ruby object when we have a function
2016-05-12 10:59:18 +10:00
Sam Saffron
eb826ae48a
correct the exception structure
2016-05-12 10:14:33 +10:00
Sam
daba828c27
remove warnings
2016-05-11 18:44:24 +10:00
Sam
5440e3f625
FIX: rethrow ruby exceptions that you catch from js callbacks
2016-05-11 17:58:33 +10:00
Sam
8568f6ed48
translate internal backtraces so we can tell where they happen
2016-05-11 17:02:20 +10:00
Sam Saffron
99cf7a690c
add locking for concurrent access
2016-05-11 12:26:52 +10:00
Sam
9e9a418453
more progress towards invoking ruby from v8
2016-05-10 08:33:31 +10:00
Sam
296efa9290
work in progress
2016-05-08 20:59:10 +10:00
Sam
7b3273acbf
FEATURE: context can now timeout
2016-05-06 17:08:06 +10:00
Sam
1dd2a44a6f
initial commit
2016-05-04 16:54:51 +10:00