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

Unified Diff: test/message/syntactic-tail-call-in-for-of.js

Issue 1914423002: [es8] Report proper syntax error for tail call expressions in for-in and for-of bodies. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-fix
Patch Set: Addressing comments Created 4 years, 8 months 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
« no previous file with comments | « test/message/syntactic-tail-call-in-for-in.out ('k') | test/message/syntactic-tail-call-in-for-of.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/syntactic-tail-call-in-for-of.js
diff --git a/test/message/syntactic-tail-call-in-try.js b/test/message/syntactic-tail-call-in-for-of.js
similarity index 90%
copy from test/message/syntactic-tail-call-in-try.js
copy to test/message/syntactic-tail-call-in-for-of.js
index 97eb4f757ab27e898e888078a46b80a8df61097a..a2daf029b7065207a373f8c1824b0ba32b393aea 100644
--- a/test/message/syntactic-tail-call-in-try.js
+++ b/test/message/syntactic-tail-call-in-for-of.js
@@ -9,8 +9,7 @@ function f() {
}
function g() {
- try {
+ for (var v of [1, 2, 3]) {
return continue f();
- } catch(e) {
}
}
« no previous file with comments | « test/message/syntactic-tail-call-in-for-in.out ('k') | test/message/syntactic-tail-call-in-for-of.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698