source: trip-planner-front/node_modules/core-js/modules/es.date.to-primitive.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 531 bytes
Line 
1var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
2var dateToPrimitive = require('../internals/date-to-primitive');
3var wellKnownSymbol = require('../internals/well-known-symbol');
4
5var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
6var DatePrototype = Date.prototype;
7
8// `Date.prototype[@@toPrimitive]` method
9// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
10if (!(TO_PRIMITIVE in DatePrototype)) {
11 createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
12}
Note: See TracBrowser for help on using the repository browser.