Skip to content

Commit 5ea44f0

Browse files
committed
Use setImmediate() in callback
1 parent c5fa3d3 commit 5ea44f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function maybeCallback(callback, ctx, thisArg, func) {
6666
} catch (e) {
6767
err = e;
6868
}
69-
process.nextTick(function () {
69+
setImmediate(function () {
7070
if (val === undefined) {
7171
callback(err);
7272
} else {

0 commit comments

Comments
 (0)