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: #34368
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
  • Loading branch information
BethGriggs authored and cjihrig committed Jul 22, 2020
1 parent b9be922 commit 8067dcc
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
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
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 8067dcc

Please sign in to comment.