Description[math] Fix Math.hypot to properly call ToNumber on all arguments.
The spec requires all Math functions to first call ToNumber on all
arguments before doing any other observable operation. So early
return in case of Infinity is not valid.
Drive-by-fix: Remove the use of %_Arguments / %_ArgumentsLength and
use (strict) arguments instead of allocating a temporary InternalArray
explicitly.
R=yangguo@chromium.org
Committed: https://crrev.com/264fa75e529562a6f5df97c5daf1867cd81c58d2
Cr-Commit-Position: refs/heads/master@{#33717}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|