2016-09-15 07:26:52 +08:00
|
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
2018-08-22 23:14:31 +08:00
|
|
|
const { isCPPSymbolsNotMapped } = require('./util');
|
2016-09-15 07:26:52 +08:00
|
|
|
|
2018-08-22 23:14:31 +08:00
|
|
|
if (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(); });
|
|
|
|
};
|
2022-11-17 21:02:11 +08:00
|
|
|
f();`,
|
2016-09-15 07:26:52 +08:00
|
|
|
});
|