blob: c7aebcdef8b385f1b9cd12bdcc71982df7c6526c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Copyright (C) 2017 the V8 project authors, 2017 Igalia S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/fields-new-no-sc-line-gen-
name: ASI prevents a following generator method
features: [class-fields, generators]
negative:
type: SyntaxError
phase: early
---*/
class C {
/*{ fields }*/
*m() { return 42; }
}
|