Index: test/mjsunit/regress/regress-undefined-store-keyed-fast-element.js |
diff --git a/test/mjsunit/regress/regress-1898.js b/test/mjsunit/regress/regress-undefined-store-keyed-fast-element.js |
similarity index 89% |
copy from test/mjsunit/regress/regress-1898.js |
copy to test/mjsunit/regress/regress-undefined-store-keyed-fast-element.js |
index 5440446fbf78ca593e8748cd54ea2aefad047542..9e6ec9db07ec3bb127b4f15a432700e637d5ccbd 100644 |
--- a/test/mjsunit/regress/regress-1898.js |
+++ b/test/mjsunit/regress/regress-undefined-store-keyed-fast-element.js |
@@ -27,11 +27,11 @@ |
// Flags: --allow-natives-syntax |
-function f(x) { |
- Math.log(Math.min(0.1, Math.abs(x))); |
+function f(v) { |
+ return [0.0, 0.1, 0.2, v]; |
} |
-f(0.1); |
-f(0.1); |
+assertEquals([0.0, 0.1, 0.2, NaN], f(NaN)); |
+assertEquals([0.0, 0.1, 0.2, NaN], f(NaN)); |
%OptimizeFunctionOnNextCall(f); |
-f(0.1); |
+assertEquals([0.0, 0.1, 0.2, undefined], f(undefined)); |