Skip to content

Commit 841ec0f

Browse files
committed
v1.0.3
1 parent 61b587d commit 841ec0f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-hdiffpatch",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "hdiffpatch port to node.js",
55
"main": "index.js",
66
"scripts": {

src/main.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ namespace hdiffpatchNode
3838
Local<Value> argv[1] = { returnObj };
3939
// opaque->cb->Call(Nan::GetCurrentContext()->Global(), Null(opaque->isolate), 1, argv);
4040

41-
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), opaque->cb, 1, argv);
41+
Nan::AsyncResource ar("hdiff_callback");
42+
ar.runInAsyncScope(Nan::GetCurrentContext()->Global(), opaque->cb, 1, argv);
4243

4344
return 0;
4445
}

0 commit comments

Comments
 (0)