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

Unified Diff: test/message/yield-in-generator-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-generator-param.js
diff --git a/test/message/arrow-param-after-rest.js b/test/message/yield-in-generator-param.js
similarity index 86%
copy from test/message/arrow-param-after-rest.js
copy to test/message/yield-in-generator-param.js
index 9192bc6c0cb45d36acf68165a0ce3fe20e83621b..1a8f8420f6a2c8b8336c3bfd502e49afb30bef4a 100644
--- a/test/message/arrow-param-after-rest.js
+++ b/test/message/yield-in-generator-param.js
@@ -1,7 +1,5 @@
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-//
-//
-(...x, y) => 10
+function* g(a = yield) {}

Powered by Google App Engine
This is Rietveld 408576698