This commit is contained in:
cilame 2022-04-23 16:43:11 +08:00
parent 3798d76720
commit ee37d248a3

View File

@ -914,11 +914,12 @@ function injectfunc(e, window) {
var desc = Object.getOwnPropertyDescriptor(_Date, names[i]);
Object.defineProperty(Date, names[i], desc);
}
return saf(Date);
function Date() {
var date = instantiate(_Date, [ftime]); // 固定返回某一个时间点
return date;
}
Date.prototype = _Date.prototype
return saf(Date);
}(Date);
Date.now = saf(function now(){ return ftime })
}