Skip to content

Commit

Permalink
worker: assign missing deprecation code
Browse files Browse the repository at this point in the history
PR-URL: #28395
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
  • Loading branch information
jasnell authored and targos committed Jul 20, 2019
1 parent e6e98af commit cbf5401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class Worker extends EventEmitter {
process.emitWarning(
'Passing a callback to worker.terminate() is deprecated. ' +
'It returns a Promise instead.',
'DeprecationWarning', 'DEP0XXX');
'DeprecationWarning', 'DEP0132');
this.once('exit', (exitCode) => callback(null, exitCode));
}

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-worker-nexttick-terminate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ process.nextTick(() => {
common.expectWarning(
'DeprecationWarning',
'Passing a callback to worker.terminate() is deprecated. ' +
'It returns a Promise instead.', 'DEP0XXX');
'It returns a Promise instead.', 'DEP0132');

w.on('message', common.mustCall(() => {
setTimeout(() => {
Expand Down

0 comments on commit cbf5401

Please sign in to comment.