Index: src/js/v8natives.js |
diff --git a/src/js/v8natives.js b/src/js/v8natives.js |
index 9f0ac087f43522cc35e5aead9d47c86e6688f511..6db941bffe90f6166bd2943c80e04be55a4e1703 100644 |
--- a/src/js/v8natives.js |
+++ b/src/js/v8natives.js |
@@ -363,7 +363,7 @@ function NumberIsSafeInteger(number) { |
if (NumberIsFinite(number)) { |
var integral = TO_INTEGER(number); |
if (integral == number) { |
- return %math_abs(integral) <= kMaxSafeInteger; |
+ return -kMaxSafeInteger <= integral && integral <= kMaxSafeInteger; |
} |
} |
return false; |