flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
12
VISUALIZACION/node_modules/core-js/modules/es6.date.to-string.js
generated
vendored
Executable file
12
VISUALIZACION/node_modules/core-js/modules/es6.date.to-string.js
generated
vendored
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
var DateProto = Date.prototype;
|
||||
var INVALID_DATE = 'Invalid Date';
|
||||
var TO_STRING = 'toString';
|
||||
var $toString = DateProto[TO_STRING];
|
||||
var getTime = DateProto.getTime;
|
||||
if (new Date(NaN) + '' != INVALID_DATE) {
|
||||
require('./_redefine')(DateProto, TO_STRING, function toString() {
|
||||
var value = getTime.call(this);
|
||||
// eslint-disable-next-line no-self-compare
|
||||
return value === value ? $toString.call(this) : INVALID_DATE;
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue