2016-09-15 07:26:52 +08:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
|
|
|
2017-07-01 07:29:09 +08:00
|
|
|
if (!common.enoughTestCpu)
|
|
|
|
common.skip('test is CPU-intensive');
|
|
|
|
|
2018-02-11 11:50:31 +08:00
|
|
|
if (common.isCPPSymbolsNotMapped) {
|
2016-09-15 07:26:52 +08:00
|
|
|
common.skip('C++ symbols are not mapped for this os.');
|
2018-02-11 11:50:31 +08:00
|
|
|
}
|
2016-09-19 09:24:44 +08:00
|
|
|
|
2016-10-11 14:23:18 +08:00
|
|
|
const base = require('./tick-processor-base.js');
|
2016-09-19 09:24:44 +08:00
|
|
|
|
2016-09-15 07:26:52 +08:00
|
|
|
base.runTest({
|
|
|
|
pattern: /Builtin_DateNow/,
|
|
|
|
code: `function f() {
|
|
|
|
this.ts = Date.now();
|
|
|
|
setImmediate(function() { new f(); });
|
|
|
|
};
|
|
|
|
f();`
|
|
|
|
});
|