Index: test/mjsunit/regress/regress-386034.js |
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-386034.js |
similarity index 58% |
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
copy to test/mjsunit/regress/regress-386034.js |
index 658d776ea3b80cd00d256a5514603bdb3df1f179..d770ce91bd64ad6e1307b1b699948b2513359efc 100644 |
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js |
+++ b/test/mjsunit/regress/regress-386034.js |
@@ -4,18 +4,16 @@ |
// Flags: --allow-natives-syntax |
-function g() { |
- arguments.length; |
+function f(x) { |
+ var v = x; |
+ for (i = 0; i < 1; i++) { |
+ v.apply(this, arguments); |
+ } |
} |
-var global = ""; |
+function g() {} |
-function f() { |
- global.dummy = this; |
- g({}); |
-} |
- |
-f(); |
-f(); |
+f(g); |
+f(g); |
%OptimizeFunctionOnNextCall(f); |
-f(); |
+assertThrows(function() { f('----'); }, TypeError); |