Skip to content

Commit 152935c

Browse files
committed
Added scope for dispatchInterrupt and solved #30
The solution is here: nwjs/nw.js#3289.
1 parent 573145f commit 152935c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wiringPiISR.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static void dispatchInterrupt(uv_async_t* handle, int status) {
5252

5353
#if NODE_VERSION_AT_LEAST(0, 11, 0)
5454
v8::Isolate* isolate = v8::Isolate::GetCurrent();
55+
HandleScope scope(isolate);
5556
v8::Local<Function> callback = v8::Local<Function>::New(isolate, interrupt_callbacks[data->pin]);
5657
#else
5758
v8::Local<Function> callback = v8::Local<Function>::New(interrupt_callbacks[data->pin]);

0 commit comments

Comments
 (0)