Index: test/mjsunit/regress/regress-430201b.js |
diff --git a/test/mjsunit/regress/regress-430201.js b/test/mjsunit/regress/regress-430201b.js |
similarity index 86% |
copy from test/mjsunit/regress/regress-430201.js |
copy to test/mjsunit/regress/regress-430201b.js |
index b53383e22e4553ae4c0542d90338b55d20d40dc9..056504d1d717e7cf8d8b7674a78e948b424e13e1 100644 |
--- a/test/mjsunit/regress/regress-430201.js |
+++ b/test/mjsunit/regress/regress-430201b.js |
@@ -27,15 +27,17 @@ |
// Flags: --allow-natives-syntax --expose-gc |
-var array_1 = []; |
+(function() { |
+ var array_1 = []; |
-%SetFlags("--stress-compaction"); |
-for (var a = 0; a < 10000; a++) { array_1[a * 100] = 0; } |
+ %SetFlags("--stress-compaction"); |
+ for (var a = 0; a < 10000; a++) { array_1[a * 100] = 0; } |
-gc(); |
-gc(); |
+ gc(); |
+ gc(); |
-var array_2 = []; |
-for (var i = 0; i < 321361; i++) { |
- array_2[i] = String.fromCharCode(i)[0]; |
-} |
+ var array_2 = []; |
+ for (var i = 0; i < 321361; i++) { |
+ array_2[i] = String.fromCharCode(i)[0]; |
+ } |
+})(); |