Index: test/mjsunit/regress/regress-625121.js |
diff --git a/test/mjsunit/regress/regress-5085.js b/test/mjsunit/regress/regress-625121.js |
similarity index 56% |
copy from test/mjsunit/regress/regress-5085.js |
copy to test/mjsunit/regress/regress-625121.js |
index 0ed034dc2d09e97827e2b4881570d60be2b5072b..27ad0f5faf7ebc4cafd184c70ed51444ea9b928d 100644 |
--- a/test/mjsunit/regress/regress-5085.js |
+++ b/test/mjsunit/regress/regress-625121.js |
@@ -4,11 +4,13 @@ |
// Flags: --allow-natives-syntax |
-function foo(x) { |
- return x instanceof Proxy; |
+function test(f) { |
+ f(0); |
+ f(NaN); |
+ %OptimizeFunctionOnNextCall(f); |
+ f(1.0); |
} |
-assertFalse(foo({})); |
-assertFalse(foo({})); |
-%OptimizeFunctionOnNextCall(foo); |
-assertFalse(foo({})); |
+test(x => Math.cosh(+x)); |
+test(x => Math.sinh(+x)); |
+test(x => Math.tanh(+x)); |