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