Files
node/test/parallel/test-warn-sigprof.js
T
Eugene Ostroukhov 39977db7c0 inspector: split main thread interface from transport
Workers debugging will require interfacing between the "main" inspector
and per-worker isolate inspectors. This is consistent with what WS
interface does. This change is a refactoring change and does not change
the functionality.

PR-URL: https://github.com/nodejs/node/pull/21182
Fixes: https://github.com/nodejs/node/issues/21725
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-07-13 23:42:50 +02:00

18 lines
485 B
JavaScript

// Flags: --inspect=0
'use strict';
const common = require('../common');
// The inspector attempts to start when Node starts. Once started, the inspector
// warns on the use of a SIGPROF listener.
common.skipIfInspectorDisabled();
if (common.isWindows)
common.skip('test does not apply to Windows');
common.expectWarning('Warning',
'process.on(SIGPROF) is reserved while debugging',
common.noWarnCode);
process.on('SIGPROF', () => {});