We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cde2ca9 commit aedb72eCopy full SHA for aedb72e
lib/internal/process/next_tick.js
@@ -131,12 +131,6 @@ function setupNextTick() {
131
} while (tickInfo[kLength] !== 0);
132
}
133
134
- function TickObject(c, args) {
135
- this.callback = c;
136
- this.domain = process.domain || null;
137
- this.args = args;
138
- }
139
-
140
function nextTick(callback) {
141
if (typeof callback !== 'function')
142
throw new TypeError('callback is not a function');
@@ -151,7 +145,11 @@ function setupNextTick() {
151
145
args[i - 1] = arguments[i];
152
146
153
147
154
- nextTickQueue.push(new TickObject(callback, args));
148
+ nextTickQueue.push({
149
+ callback,
150
+ domain: process.domain || null,
+ args
+ });
155
tickInfo[kLength]++;
156
157
0 commit comments