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

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