2019-10-31 01:37:42 +05:30
|
|
|
var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
|
2019-09-25 13:30:05 +05:30
|
|
|
var dateToPrimitive = require('../internals/date-to-primitive');
|
|
|
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
|
|
|
|
|
|
|
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
|
|
var DatePrototype = Date.prototype;
|
|
|
|
|
|
|
|
// `Date.prototype[@@toPrimitive]` method
|
|
|
|
// https://tc39.github.io/ecma262/#sec-date.prototype-@@toprimitive
|
2019-10-31 01:37:42 +05:30
|
|
|
if (!(TO_PRIMITIVE in DatePrototype)) {
|
|
|
|
createNonEnumerableProperty(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
|
|
|
|
}
|