Index: test/mjsunit/regress/regress-crbug-412208.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-crbug-412208.js |
similarity index 68% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/regress/regress-crbug-412208.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..a194f855b4cb7b1f2a6dd73999cfb742cc790575 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/regress/regress-crbug-412208.js |
@@ -4,18 +4,13 @@ |
// Flags: --allow-natives-syntax |
-function g() { |
- arguments.length; |
-} |
- |
-var global = ""; |
+var non_const_true = true; |
function f() { |
- global.dummy = this; |
- g({}); |
+ return non_const_true || (f() = this); |
} |
-f(); |
-f(); |
+assertTrue(f()); |
+assertTrue(f()); |
%OptimizeFunctionOnNextCall(f); |
-f(); |
+assertTrue(f()); |