2016-09-15 01:26:52 +02:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
2018-08-22 08:14:31 -07:00
|
|
|
const { isCPPSymbolsNotMapped } = require('./util');
|
2016-09-15 01:26:52 +02:00
|
|
|
|
2018-08-22 08:14:31 -07:00
|
|
|
if (isCPPSymbolsNotMapped) {
|
2016-09-15 01:26:52 +02:00
|
|
|
common.skip('C++ symbols are not mapped for this os.');
|
2018-02-11 11:50:31 +08:00
|
|
|
}
|
2016-09-18 18:24:44 -07:00
|
|
|
|
2016-10-10 23:23:18 -07:00
|
|
|
const base = require('./tick-processor-base.js');
|
2016-09-18 18:24:44 -07:00
|
|
|
|
2016-09-15 01:26:52 +02:00
|
|
|
base.runTest({
|
2017-11-24 00:13:44 +01:00
|
|
|
pattern: /MakeContext/,
|
2016-09-15 01:26:52 +02:00
|
|
|
code: `function f() {
|
2017-11-24 00:13:44 +01:00
|
|
|
require('vm').createContext({});
|
2016-09-15 01:26:52 +02:00
|
|
|
setImmediate(function() { f(); });
|
|
|
|
};
|
2022-11-17 08:02:11 -05:00
|
|
|
f();`,
|
2016-09-15 01:26:52 +02:00
|
|
|
});
|