mirror of
https://github.com/nodejs/node.git
synced 2025-05-10 17:57:53 +00:00

PR-URL: https://github.com/nodejs/node/pull/22769 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
20 lines
556 B
JavaScript
20 lines
556 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.skipIfWorker(); // Worker inspector never has a server running
|
|
|
|
common.expectWarning('Warning',
|
|
'process.on(SIGPROF) is reserved while debugging',
|
|
common.noWarnCode);
|
|
|
|
process.on('SIGPROF', () => {});
|