Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #85 from gruns/master
Browse files Browse the repository at this point in the history
Accept arguments to process.nextTick(fn, ...args), just like Node.js's process.nextTick(callback [, ...args]).
  • Loading branch information
sokra authored Jun 12, 2019
2 parents fb42a44 + 34d7d75 commit fb20a4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mock/process.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
exports.nextTick = function nextTick(fn) {
setTimeout(fn, 0);
var args = Array.prototype.slice.call(arguments);
args.shift();
setTimeout(function () {
fn.apply(null, args);
}, 0);
};

exports.platform = exports.arch =
Expand Down

0 comments on commit fb20a4a

Please sign in to comment.