Skip to content

Commit eeda609

Browse files
committed
module: update expected module.parent DEP number
1 parent d8faa2a commit eeda609

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/modules/cjs/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ ObjectDefineProperty(Module.prototype, 'parent', {
248248
getModuleParent,
249249
'module.parent is deprecated due to accuracy issues. Please use ' +
250250
'require.main to find program entry point instead.',
251-
'DEP0143'
251+
'DEP0144'
252252
) : getModuleParent
253253
});
254254

test/parallel/test-module-parent-deprecation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ common.expectWarning(
88
'DeprecationWarning',
99
'module.parent is deprecated due to accuracy issues. Please use ' +
1010
'require.main to find program entry point instead.',
11-
'DEP0143'
11+
'DEP0144'
1212
);
1313

1414
assert.strictEqual(module.parent, null);

0 commit comments

Comments
 (0)