es.date.to-iso-string.js 376 B

123456789
  1. var $ = require('../internals/export');
  2. var toISOString = require('../internals/date-to-iso-string');
  3. // `Date.prototype.toISOString` method
  4. // https://tc39.es/ecma262/#sec-date.prototype.toisostring
  5. // PhantomJS / old WebKit has a broken implementations
  6. $({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, {
  7. toISOString: toISOString
  8. });