mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
module: update expected module.parent DEP number
PR-URL: https://github.com/nodejs/node/pull/34368 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
This commit is contained in:
committed by
Myles Borins
parent
218381213b
commit
128ed10fc4
@@ -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
|
||||
});
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user