Skip to content

Commit

Permalink
module: update expected module.parent DEP number
Browse files Browse the repository at this point in the history
PR-URL: nodejs#34368
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
  • Loading branch information
BethGriggs authored and MylesBorins committed Jul 15, 2020
1 parent 2183812 commit 128ed10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/internal/modules/cjs/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ ObjectDefineProperty(Module.prototype, 'parent', {
getModuleParent,
'module.parent is deprecated due to accuracy issues. Please use ' +
'require.main to find program entry point instead.',
'DEP0143'
'DEP0144'
) : getModuleParent
});

Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-module-parent-deprecation.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ common.expectWarning(
'DeprecationWarning',
'module.parent is deprecated due to accuracy issues. Please use ' +
'require.main to find program entry point instead.',
'DEP0143'
'DEP0144'
);

assert.strictEqual(module.parent, null);

0 comments on commit 128ed10

Please sign in to comment.