Skip to content

Commit cbf5401

Browse files
jasnelltargos
authored andcommitted
worker: assign missing deprecation code
PR-URL: #28395 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
1 parent e6e98af commit cbf5401

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class Worker extends EventEmitter {
232232
process.emitWarning(
233233
'Passing a callback to worker.terminate() is deprecated. ' +
234234
'It returns a Promise instead.',
235-
'DeprecationWarning', 'DEP0XXX');
235+
'DeprecationWarning', 'DEP0132');
236236
this.once('exit', (exitCode) => callback(null, exitCode));
237237
}
238238

test/parallel/test-worker-nexttick-terminate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ process.nextTick(() => {
1616
common.expectWarning(
1717
'DeprecationWarning',
1818
'Passing a callback to worker.terminate() is deprecated. ' +
19-
'It returns a Promise instead.', 'DEP0XXX');
19+
'It returns a Promise instead.', 'DEP0132');
2020

2121
w.on('message', common.mustCall(() => {
2222
setTimeout(() => {

0 commit comments

Comments
 (0)