Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1126)

Unified Diff: test/mjsunit/debug-stepout-scope.js

Issue 8590027: Fix the ScopeIterator reimplemantation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/runtime.cc ('K') | « test/cctest/test-parsing.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/debug-stepout-scope.js
diff --git a/test/mjsunit/debug-stepout-scope.js b/test/mjsunit/debug-stepout-scope.js
index b06ec1a83b38ae5cbbe737524b948ef66f375e0b..2e1f0de7c46287354cbbedc05d2bddb4156e471e 100644
--- a/test/mjsunit/debug-stepout-scope.js
+++ b/test/mjsunit/debug-stepout-scope.js
@@ -166,5 +166,15 @@ eval(pre + "1");
eval(pre + "try { throw 'stuff' } catch (e) { e = 1; }");
+// The following function can be preparsed, but not parsed because
+// it contains an invalid break target. This is to make sure that
+// when a script is preparsed, the ScopeIterator will reparse it in
+// the same way.
+function lazy_parsed_but_never_called() {
+ while (true) {
+ break invalid_break_label;
Lasse Reichstein 2011/11/18 14:12:52 Don't add tests like this. It should be an early
Steven 2011/11/18 16:53:19 Moved it to the bugs/ directory. On 2011/11/18 14
+ }
+}
+
// With block as the last(!) statement in global code.
with ({}) { debugger; }
« src/runtime.cc ('K') | « test/cctest/test-parsing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698