Skip to content

Commit c390573

Browse files
committed
fix: Replace nextTick by setImmediate for Promise.
1 parent b40f85b commit c390573

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
@@ -53,7 +53,7 @@ function maybeCallback(callback, ctx, thisArg, func) {
5353
err = e;
5454
}
5555
return new Promise(function(resolve, reject) {
56-
process.nextTick(function() {
56+
setImmediate(function() {
5757
if (err) {
5858
reject(err);
5959
} else {

0 commit comments

Comments
 (0)