Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Apr 25, 2015
1 parent 763a4f4 commit e5e5aa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions q.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,15 @@ var nextTick =(function () {
};

if (typeof process === "object" &&
process.toString() === '[object process]' && process.nextTick) {
process.toString() === "[object process]" && process.nextTick) {
// Ensure Q is in a real Node environment, with a `process.nextTick`.
// To see through fake Node environments:
// * Mocha test runner - exposes a `process` global without a `nextTick`
// * Browserify - exposes a `process.nexTick` function that uses
// `setTimeout`. In this case `setImmediate` is preferred because
// it is faster. Browserify's `process.toString()` yields
// '[object Object]', while in a real Node environment
// `process.nextTick()` yields '[object process]'.
// "[object Object]", while in a real Node environment
// `process.nextTick()` yields "[object process]".
isNodeJS = true;

requestTick = function () {
Expand Down

0 comments on commit e5e5aa9

Please sign in to comment.