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

Unified Diff: test/message/yield-in-arrow-param.js

Issue 1941823003: Properly disallow 'yield' in class expressions and arrow parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Better error message for yield in parameter 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
Index: test/message/yield-in-arrow-param.js
diff --git a/test/message/regress/regress-4829-1.js b/test/message/yield-in-arrow-param.js
similarity index 82%
copy from test/message/regress/regress-4829-1.js
copy to test/message/yield-in-arrow-param.js
index 1ad5feda8cb96cd24e4c47f7407c9699d150c327..c815fe7603ea27a1279f8713b36c3a0d988abfb6 100644
--- a/test/message/regress/regress-4829-1.js
+++ b/test/message/yield-in-arrow-param.js
@@ -2,6 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function tag() {}
-
-tag(tag`\xyy`);
+function* g() { (a = yield) => {} }

Powered by Google App Engine
This is Rietveld 408576698