Skip to content

Commit

Permalink
Use Node.js process.nextTick when available
Browse files Browse the repository at this point in the history
  • Loading branch information
i20 committed Feb 13, 2018
1 parent f4d9548 commit 5f4fe9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

'use strict';

function nextTick (callback, param) {
var nextTick = (global.process && global.process.nextTick) || function (callback, param) {

setTimeout(callback, 0, param);
}
};

function convert (callback, param) {

Expand Down

0 comments on commit 5f4fe9e

Please sign in to comment.