Chromium Code Reviews| Index: src/runtime.js |
| diff --git a/src/runtime.js b/src/runtime.js |
| index 35bc07a10e8c26f37ccb96dc5ce5dc2d6cbac625..52375301b01ce72da08f328187190b04454ec20f 100644 |
| --- a/src/runtime.js |
| +++ b/src/runtime.js |
| @@ -539,6 +539,8 @@ function NonNumberToNumber(x) { |
| if (IS_BOOLEAN(x)) return x ? 1 : 0; |
| if (IS_UNDEFINED(x)) return NAN; |
| if (IS_SYMBOL(x)) return NAN; |
| + if (IS_FLOAT32x4(x)) return NaN; |
| + if (IS_INT32x4(x)) return NaN; |
| return (IS_NULL(x)) ? 0 : ToNumber(%DefaultNumber(x)); |
| } |