Skip to content

Commit 139f5da

Browse files
committed
Merge pull request #34 from taoyuan/master
Added scope for dispatchInterrupt and solved #30
2 parents 573145f + bde3481 commit 139f5da

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# CHANGELOG
22

3-
## v2.1.0 *[not released yet]*
3+
## v2.1.1 *[not released yet]*
4+
* **Fix:** added scope for dispatchInterrupt `taoyuan`
5+
6+
## v2.1.0 *[Aug 1 2015]*
47
* **Update:** libWiringPi to [custom][nekuz0r-libWiringPi] v2.25 `nekuz0r`
58
* **Update:** wiringPiISR now keeps event loop running `nekuz0r`
69
* **Update:** piModelNames string array `nekuz0r`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wiring-pi",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "Bindings to wiringPi",
55
"main": "lib/exports.js",
66
"scripts": {

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)