Description[wasm][asm.js] Confirm literals are Numbers before using AsNumber, refactor.
We have been assuming in several places that ContainsDot or ToInt32 is
sufficient to check a value is a valid double or int.
Refactoring all the checks to one place and making them cope with booleans
or other unexpected types being present.
BUG=672044
R=titzer@chromium.org
Committed: https://crrev.com/4a637abea3eb1a07b0059d047bc1c647ce331859
Cr-Commit-Position: refs/heads/master@{#41595}
Patch Set 1 #Patch Set 2 : fix #
Total comments: 2
Patch Set 3 : fix #
Messages
Total messages: 20 (13 generated)
|