node/test/tick-processor/test-tick-processor-preproc...

22 lines
483 B
JavaScript

'use strict';
const common = require('../common');
if (!common.enoughTestCpu)
common.skip('test is CPU-intensive');
if (common.isCPPSymbolsNotMapped) {
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').createContext({});
setImmediate(function() { f(); });
};
f();`,
profProcessFlags: ['--preprocess']
});