11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_cicommon.skipIfInspectorDisabled(); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst assert = require('assert'); 71cb0ef41Sopenharmony_ciconst domain = require('domain'); 81cb0ef41Sopenharmony_ciconst inspector = require('inspector'); 91cb0ef41Sopenharmony_ci 101cb0ef41Sopenharmony_ciprocess.on('warning', common.mustCall((warning) => { 111cb0ef41Sopenharmony_ci assert.strictEqual(warning.code, 'DEP0097'); 121cb0ef41Sopenharmony_ci assert.match(warning.message, /Triggered by calling emit on process/); 131cb0ef41Sopenharmony_ci})); 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_cidomain.create().run(() => { 161cb0ef41Sopenharmony_ci inspector.open(0); 171cb0ef41Sopenharmony_ci}); 18