mirror of
https://github.com/tc39/test262.git
synced 2025-10-15 21:08:51 +02:00
The `test/language/class/` directory contains a small subset of Test262's tests for ES2015 classes. The majority of tests for classes are organized within `test/language/statements/class/`. - Move the tests that rely on the ClassDeclaration syntactic form from `test/language/class/` to `test/language/statements/class/`. - Move the test that relies on the ClassExpression syntactic form from `test/language/class/` to `test/language/expressions/class/`.
18 lines
388 B
JavaScript
18 lines
388 B
JavaScript
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: >
|
|
`yield` may not be used as the binding identifier of a function
|
|
expression within classes.
|
|
features: [generators]
|
|
es6id: 14.1
|
|
negative: SyntaxError
|
|
---*/
|
|
|
|
class A {
|
|
*g() {
|
|
(function yield() {});
|
|
}
|
|
}
|