Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-tick-processor-preprocess-flag.js « tick-processor « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b003f7c6b8b01fa8e702062cc964086203f321b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'use strict';
const common = require('../common');
const { isCPPSymbolsNotMapped } = require('./util');

if (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']
});