| 1 |
// Copyright 2017 Valerie Young. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: Syntax error if the same private field defined twice |
| 6 |
esid: sec-class-definitions-static-semantics-early-errors |
| 7 |
features: [class, class-fields-private] |
| 8 |
negative: |
| 9 |
phase: parse |
| 10 |
type: SyntaxError |
| 11 |
info: | |
| 12 |
Static Semantics: Early Errors |
| 13 |
|
| 14 |
ClassBody : ClassElementList |
| 15 |
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries. |
| 16 |
---*/ |
| 17 |
|
| 18 |
|
| 19 |
throw "Test262: This statement should not be evaluated."; |
| 20 |
|
| 21 |
var C = class { |
| 22 |
#x; |
| 23 |
#x; |
| 24 |
} |