-
Notifications
You must be signed in to change notification settings - Fork 62
Conversation
I couldn't leave it alone, it works now but I've only tested on Node 4 so I have no idea if this plays nicely with older Node and I don't use contextify so ymmv. |
Adding to the list: nodejs/node#2798. |
Related: #180 (comment) |
Thank you so much, @rvagg! I'll do some regression testing on this later tonight and hopefully get a new version pushed out soon. |
Really happy progress is being made to fix this. Thanks everyone. I just tried to install @rvagg's version and it's not installing on node.js v4.0.0 here's my |
@rvagg - Thanks again for your help on this. It works like a charm on 4.0.0, but I get the following errors on older versions:
Any chance you'd be able to help out there? I added travis to this repo with the tests running against node 4, 0.12, and 0.10, so it should make multi-version testing a little less painful. Another push here should trigger it. |
Sorry, I was using
@kkoopa I'm at a loss on this one, only failing on v0.10.40. It's failing on these: test.throws(function () {
sandbox.run('doh');
}, ReferenceError);
test.throws(function () {
sandbox.run('x = y');
}, ReferenceError); and when you inspect what it does, at line 98 in contextify.cc, this: Nan::MaybeLocal<Value> result = Nan::RunScript(script.ToLocalChecked()); is returning an |
Don't know what's up. It should be hitting https://github.com/nodejs/nan/blob/master/nan.h#L784-L788 NAN_INLINE MaybeLocal<v8::Value> RunScript(
v8::Local<BoundScript> script
) {
return MaybeLocal<v8::Value>(script->Run());
} |
The beginings of a NAN@2 upgrade, not complete cause it segfaults, someone else is willing to take over this if they have the patience to work out why. It compiles at least.
#173