diff --git a/lib/internal/modules/cjs/loader.js b/lib/internal/modules/cjs/loader.js index 5ffb48406323ae..c3c0758cf8ab47 100644 --- a/lib/internal/modules/cjs/loader.js +++ b/lib/internal/modules/cjs/loader.js @@ -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 }); diff --git a/test/parallel/test-module-parent-deprecation.js b/test/parallel/test-module-parent-deprecation.js index 439e86bc96810a..e2533f87d417d0 100644 --- a/test/parallel/test-module-parent-deprecation.js +++ b/test/parallel/test-module-parent-deprecation.js @@ -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);