2016-09-15 01:26:52 +02:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
|
|
|
|
if (common.isWindows ||
|
|
|
|
common.isSunOS ||
|
|
|
|
common.isAix ||
|
|
|
|
common.isLinuxPPCBE ||
|
|
|
|
common.isFreeBSD) {
|
|
|
|
common.skip('C++ symbols are not mapped for this os.');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2016-09-18 18:24:44 -07:00
|
|
|
if (!common.enoughTestCpu) {
|
|
|
|
common.skip('test is CPU-intensive');
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
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({
|
|
|
|
pattern: /RunInDebugContext/,
|
|
|
|
code: `function f() {
|
2016-10-15 12:16:42 -07:00
|
|
|
require('vm').runInDebugContext('Debug');
|
2016-09-15 01:26:52 +02:00
|
|
|
setImmediate(function() { f(); });
|
|
|
|
};
|
|
|
|
f();`
|
|
|
|
});
|