mirror of https://github.com/lukechilds/node.git
Browse Source
This is a one-line fix to prevent the --preprocess option (used with --prof-process to output JSON) to cause an isolate log file profiling process to crash. PR-URL: https://github.com/nodejs/node/pull/14966 Reviewed-By: Luca Maraschi <luca.maraschi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>canary-base
davidmarkclements
7 years ago
committed by
James M Snell
3 changed files with 29 additions and 2 deletions
@ -0,0 +1,24 @@ |
|||
'use strict'; |
|||
const common = require('../common'); |
|||
|
|||
if (!common.enoughTestCpu) |
|||
common.skip('test is CPU-intensive'); |
|||
|
|||
if (common.isWindows || |
|||
common.isSunOS || |
|||
common.isAIX || |
|||
common.isLinuxPPCBE || |
|||
common.isFreeBSD) |
|||
common.skip('C++ symbols are not mapped for this os.'); |
|||
|
|||
const base = require('./tick-processor-base.js'); |
|||
|
|||
base.runTest({ |
|||
pattern: /^{/, |
|||
code: `function f() {
|
|||
require('vm').runInDebugContext('Debug'); |
|||
setImmediate(function() { f(); }); |
|||
}; |
|||
f();`,
|
|||
profProcessFlags: ['--preprocess'] |
|||
}); |
Loading…
Reference in new issue