Index: test/mjsunit/handle-count-ast.js |
diff --git a/test/mjsunit/compiler/regress-ntl-effect.js b/test/mjsunit/handle-count-ast.js |
similarity index 51% |
copy from test/mjsunit/compiler/regress-ntl-effect.js |
copy to test/mjsunit/handle-count-ast.js |
index 708fe32828c9197dfa3d8c371ab01cbc1ad3317a..aef702b87a1b3d2e744a178ce8e823e3c7fbc0a9 100644 |
--- a/test/mjsunit/compiler/regress-ntl-effect.js |
+++ b/test/mjsunit/handle-count-ast.js |
@@ -2,15 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --allow-natives-syntax |
+// Flags: --check_handle_count |
-function g() { |
- throw 0; |
-} |
+var ones = eval("[" + Array(12 * 1024).join("1,") + 1 + "]") |
-function f() { |
- g(); |
- while (1) {} |
+var sum = 0; |
+for (var i = 0; i < ones.length; i++) { |
+ sum += ones[i]; |
} |
- |
-assertThrows(function () { f(); }); |