If you set a breakpoint on q.js:163, you'll see that this block evaluates:
if (typeof process !== "undefined" && 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`.
isNodeJS = true;
requestTick = function () {
process.nextTick(flush);
};
}
Something is defining process.nextTick in the production bundle, and it's making Q behave as though it's running under Node. I suspect this has negative repercussions in terms of error handling.
If you set a breakpoint on
q.js:163
, you'll see that this block evaluates:Something is defining
process.nextTick
in the production bundle, and it's making Q behave as though it's running under Node. I suspect this has negative repercussions in terms of error handling.