mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 19:23:18 +00:00
11 lines
460 B
JavaScript
11 lines
460 B
JavaScript
|
var hide = require('../internals/hide');
|
||
|
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
|
||
|
if (!(TO_PRIMITIVE in DatePrototype)) hide(DatePrototype, TO_PRIMITIVE, dateToPrimitive);
|