Skip to content

Commit 210ead8

Browse files
committed
Defer callback execution until the next tick of the event loop
1 parent 5634382 commit 210ead8

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/repl/ctor/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/repl/ctor/lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,8 @@ setNonEnumerableReadOnly( REPL.prototype, 'load', function load( fpath, clbk ) {
540540
process.nextTick( next );
541541
}
542542
} else {
543-
clbk(); // eslint-disable-line callback-return
543+
// TODO: replace with polyfill
544+
process.nextTick( clbk );
544545
}
545546
}
546547
});

0 commit comments

Comments
 (0)