node/test/tick-processor/test-tick-processor-cpp-cor...

21 lines
454 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: /MakeContext/,
code: `function f() {
require('vm').createContext({});
setImmediate(function() { f(); });
};
f();`
});