summaryrefslogtreecommitdiff
path: root/test/parallel/test-module-parent-setter-deprecation.js
blob: f3efd89653cc8b12ff4bd722c89dd70290d21251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Flags: --pending-deprecation

'use strict';
const common = require('../common');

common.expectWarning(
  'DeprecationWarning',
  'module.parent is deprecated due to accuracy issues. Please use ' +
    'require.main to find program entry point instead.',
  'DEP0144'
);

module.parent = undefined;