1'use strict'; 2const common = require('../common'); 3const { isCPPSymbolsNotMapped } = require('./util'); 4 5if (!common.enoughTestCpu) 6 common.skip('test is CPU-intensive'); 7 8if (isCPPSymbolsNotMapped) { 9 common.skip('C++ symbols are not mapped for this os.'); 10} 11 12const base = require('./tick-processor-base.js'); 13 14base.runTest({ 15 pattern: /^{/, 16 code: `function f() { 17 require('vm').createContext({}); 18 setImmediate(function() { f(); }); 19 }; 20 f();`, 21 profProcessFlags: ['--preprocess'] 22}); 23