mirror of
https://github.com/tc39/test262.git
synced 2025-12-08 06:19:48 +01:00
* Add tests for duplicate private methods * Add generated js test files * Fix indentation * Add more features to tests * Fix feature list format
18 lines
648 B
Plaintext
Executable File
18 lines
648 B
Plaintext
Executable File
// Copyright (C) 2019 Qiming Ma (Bloomberg LP). All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
desc: It's a SyntaxError if a class contains a private async generator and a private field with the same name
|
|
info: |
|
|
Static Semantics: Early Errors
|
|
|
|
ClassBody : ClassElementList
|
|
It is a Syntax Error if PrivateBoundNames of ClassBody contains any duplicate entries, unless the name is used once for a getter and once for a setter and in no other entries.
|
|
template: syntax/invalid
|
|
features: [class-methods-private, class-fields-private, async-iteration]
|
|
---*/
|
|
|
|
//- elements
|
|
#m;
|
|
async * #m() {}
|