Skip to content

Commit

Permalink
Call process.toString() explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
kahnvex committed Apr 23, 2015
1 parent b57834b commit c36f07e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions q.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ var nextTick =(function () {
}
};

if (typeof process === "object" && (process + '') === '[object process]' &&
process.nextTick) {
if (typeof process === "object" &&
process.toString() === '[object process]' && process.nextTick) {
// Node.js before 0.9. Note that some fake-Node environments, like the
// Mocha test runner, introduce a `process` global without a `nextTick`.
// In addition, some fake-Node environments like browserify expose a
Expand Down

0 comments on commit c36f07e

Please sign in to comment.