// callback invocation with small numbers of arguments to avoid the
// performance hit associated with using `fn.apply()`
if (args === undefined) {
- doNTCallback0(callback);
+ nextTickCallbackWith0Args(callback);
} else {
switch (args.length) {
case 1:
- doNTCallback1(callback, args[0]);
+ nextTickCallbackWith1Arg(callback, args[0]);
break;
case 2:
- doNTCallback2(callback, args[0], args[1]);
+ nextTickCallbackWith2Args(callback, args[0], args[1]);
break;
case 3:
- doNTCallback3(callback, args[0], args[1], args[2]);
+ nextTickCallbackWith3Args(callback, args[0], args[1], args[2]);
break;
default:
- doNTCallbackMany(callback, args);
+ nextTickCallbackWithManyArgs(callback, args);
}
}
if (1e4 < tickInfo[kIndex])
// callback invocation with small numbers of arguments to avoid the
// performance hit associated with using `fn.apply()`
if (args === undefined) {
- doNTCallback0(callback);
+ nextTickCallbackWith0Args(callback);
} else {
switch (args.length) {
case 1:
- doNTCallback1(callback, args[0]);
+ nextTickCallbackWith1Arg(callback, args[0]);
break;
case 2:
- doNTCallback2(callback, args[0], args[1]);
+ nextTickCallbackWith2Args(callback, args[0], args[1]);
break;
case 3:
- doNTCallback3(callback, args[0], args[1], args[2]);
+ nextTickCallbackWith3Args(callback, args[0], args[1], args[2]);
break;
default:
- doNTCallbackMany(callback, args);
+ nextTickCallbackWithManyArgs(callback, args);
}
}
if (1e4 < tickInfo[kIndex])
} while (tickInfo[kLength] !== 0);
}
- function doNTCallback0(callback) {
+ function nextTickCallbackWith0Args(callback) {
var threw = true;
try {
callback();
}
}
- function doNTCallback1(callback, arg1) {
+ function nextTickCallbackWith1Arg(callback, arg1) {
var threw = true;
try {
callback(arg1);
}
}
- function doNTCallback2(callback, arg1, arg2) {
+ function nextTickCallbackWith2Args(callback, arg1, arg2) {
var threw = true;
try {
callback(arg1, arg2);
}
}
- function doNTCallback3(callback, arg1, arg2, arg3) {
+ function nextTickCallbackWith3Args(callback, arg1, arg2, arg3) {
var threw = true;
try {
callback(arg1, arg2, arg3);
}
}
- function doNTCallbackMany(callback, args) {
+ function nextTickCallbackWithManyArgs(callback, args) {
var threw = true;
try {
callback.apply(null, args);
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
42
42
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
[eval]:1
throw new Error("hello")
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
100
[eval]:1
at Object.<anonymous> ([eval]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
[eval]:1
var ______________________________________________; throw 10
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
42
42
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
[stdin]:1
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
100
at Object.<anonymous> ([stdin]-wrapper:*:*)
at Module._compile (module.js:*:*)
at node.js:*:*
- at doNTCallback0 (node.js:*:*)
+ at nextTickCallbackWith0Args (node.js:*:*)
at process._tickCallback (node.js:*:*)
[stdin]:1