main
Last change
on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
561 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var hasOwn = require('../internals/has-own-property');
|
---|
3 | var defineBuiltIn = require('../internals/define-built-in');
|
---|
4 | var dateToPrimitive = require('../internals/date-to-primitive');
|
---|
5 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
6 |
|
---|
7 | var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
---|
8 | var DatePrototype = Date.prototype;
|
---|
9 |
|
---|
10 | // `Date.prototype[@@toPrimitive]` method
|
---|
11 | // https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
|
---|
12 | if (!hasOwn(DatePrototype, TO_PRIMITIVE)) {
|
---|
13 | defineBuiltIn(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.