Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.date.to-string.js 611B

1234567891011121314151617
  1. var redefine = require('../internals/redefine');
  2. var DatePrototype = Date.prototype;
  3. var INVALID_DATE = 'Invalid Date';
  4. var TO_STRING = 'toString';
  5. var nativeDateToString = DatePrototype[TO_STRING];
  6. var getTime = DatePrototype.getTime;
  7. // `Date.prototype.toString` method
  8. // https://tc39.es/ecma262/#sec-date.prototype.tostring
  9. if (new Date(NaN) + '' != INVALID_DATE) {
  10. redefine(DatePrototype, TO_STRING, function toString() {
  11. var value = getTime.call(this);
  12. // eslint-disable-next-line no-self-compare -- NaN check
  13. return value === value ? nativeDateToString.call(this) : INVALID_DATE;
  14. });
  15. }