Index: test/mjsunit/serialize-embedded-error.js |
diff --git a/test/mjsunit/regress/regress-dictionary-to-fast-arguments.js b/test/mjsunit/serialize-embedded-error.js |
similarity index 56% |
copy from test/mjsunit/regress/regress-dictionary-to-fast-arguments.js |
copy to test/mjsunit/serialize-embedded-error.js |
index f12679a663d336fa2fd321f0b8f9a48282fef307..473c931b305d54dd45c01b21b8edead15a5d3b19 100644 |
--- a/test/mjsunit/regress/regress-dictionary-to-fast-arguments.js |
+++ b/test/mjsunit/serialize-embedded-error.js |
@@ -2,10 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-function f(a, b) { |
- for (var i = 10000; i > 0; i--) { |
- arguments[i] = 0; |
- } |
-} |
+// --serialize-toplevel --cache=code |
-f(1.5, 2.5); |
+var caught = false; |
+try { |
+ parseInt() = 0; |
+} catch(e) { |
+ caught = true; |
+} |
+assertTrue(caught); |