11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst { isCPPSymbolsNotMapped } = require('./util'); 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_ciif (isCPPSymbolsNotMapped) { 61cb0ef41Sopenharmony_ci common.skip('C++ symbols are not mapped for this os.'); 71cb0ef41Sopenharmony_ci} 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciconst base = require('./tick-processor-base.js'); 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_cibase.runTest({ 121cb0ef41Sopenharmony_ci pattern: /Builtin_DateNow/, 131cb0ef41Sopenharmony_ci code: `function f() { 141cb0ef41Sopenharmony_ci this.ts = Date.now(); 151cb0ef41Sopenharmony_ci setImmediate(function() { new f(); }); 161cb0ef41Sopenharmony_ci }; 171cb0ef41Sopenharmony_ci f();`, 181cb0ef41Sopenharmony_ci}); 19