mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
128ed10fc4
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>
15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
// Flags: --pending-deprecation
|
|
|
|
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
|
|
common.expectWarning(
|
|
'DeprecationWarning',
|
|
'module.parent is deprecated due to accuracy issues. Please use ' +
|
|
'require.main to find program entry point instead.',
|
|
'DEP0144'
|
|
);
|
|
|
|
assert.strictEqual(module.parent, null);
|