• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2const common = require('../common');
3
4common.skipIfInspectorDisabled();
5
6const assert = require('assert');
7const domain = require('domain');
8const inspector = require('inspector');
9
10process.on('warning', common.mustCall((warning) => {
11  assert.strictEqual(warning.code, 'DEP0097');
12  assert.match(warning.message, /Triggered by calling emit on process/);
13}));
14
15domain.create().run(() => {
16  inspector.open();
17});
18