Revision f230a1cf deps/v8/src/runtime.js
deps/v8/src/runtime.js | ||
---|---|---|
526 | 526 |
: %StringToNumber(x); |
527 | 527 |
} |
528 | 528 |
if (IS_BOOLEAN(x)) return x ? 1 : 0; |
529 |
if (IS_UNDEFINED(x)) return $NaN;
|
|
530 |
if (IS_SYMBOL(x)) return $NaN;
|
|
529 |
if (IS_UNDEFINED(x)) return NAN;
|
|
530 |
if (IS_SYMBOL(x)) return NAN;
|
|
531 | 531 |
return (IS_NULL(x)) ? 0 : ToNumber(%DefaultNumber(x)); |
532 | 532 |
} |
533 | 533 |
|
... | ... | |
537 | 537 |
: %StringToNumber(x); |
538 | 538 |
} |
539 | 539 |
if (IS_BOOLEAN(x)) return x ? 1 : 0; |
540 |
if (IS_UNDEFINED(x)) return $NaN;
|
|
541 |
if (IS_SYMBOL(x)) return $NaN;
|
|
540 |
if (IS_UNDEFINED(x)) return NAN;
|
|
541 |
if (IS_SYMBOL(x)) return NAN;
|
|
542 | 542 |
return (IS_NULL(x)) ? 0 : ToNumber(%DefaultNumber(x)); |
543 | 543 |
} |
544 | 544 |
|
Also available in: Unified diff