Index: test/mjsunit/regress/regress-380049.js |
diff --git a/test/mjsunit/regress/regress-355486.js b/test/mjsunit/regress/regress-380049.js |
similarity index 62% |
copy from test/mjsunit/regress/regress-355486.js |
copy to test/mjsunit/regress/regress-380049.js |
index 55362a13416335b72bfa1ff92bc29f7a04edbd65..a78626cc546cbe4aa42cd53349c1e288ac1a07ec 100644 |
--- a/test/mjsunit/regress/regress-355486.js |
+++ b/test/mjsunit/regress/regress-380049.js |
@@ -4,10 +4,6 @@ |
// Flags: --allow-natives-syntax |
-function f() { var v = arguments[0]; } |
-function g() { f(); } |
- |
-g(); |
-g(); |
-%OptimizeFunctionOnNextCall(g); |
-g(); |
+function foo(a,b,c) { return arguments; } |
+var f = foo(false, null, 40); |
+assertThrows(function() { %ObjectFreeze(f); }); |