639b3a1f77b5dae0081f9e6fbb9ad35706a21ca29079eb3e8310a33ed7faf3b36a651ff08fa8250647aac7314bc5990398302147bb3825a1f87beb53cd87ef 399 B

123456789101112131415
  1. 'use strict';
  2. // TODO: Remove from `core-js@4`
  3. var $ = require('../internals/export');
  4. var uncurryThis = require('../internals/function-uncurry-this');
  5. var $Date = Date;
  6. var thisTimeValue = uncurryThis($Date.prototype.getTime);
  7. // `Date.now` method
  8. // https://tc39.es/ecma262/#sec-date.now
  9. $({ target: 'Date', stat: true }, {
  10. now: function now() {
  11. return thisTimeValue(new $Date());
  12. }
  13. });