| 1 |
// Copyright (C) 2017 Valerie Young. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: ASI test in field declarations -- error when generator interpreted as multiplication |
| 6 |
esid: sec-automatic-semicolon-insertion |
| 7 |
features: [class, class-fields-public, generators] |
| 8 |
negative: |
| 9 |
phase: parse |
| 10 |
type: SyntaxError |
| 11 |
---*/ |
| 12 |
|
| 13 |
throw "Test262: This statement should not be evaluated."; |
| 14 |
|
| 15 |
var C = class { |
| 16 |
x = 42 |
| 17 |
*gen() {} |
| 18 |
} |