mirror of
https://github.com/tc39/test262.git
synced 2025-05-28 18:50:28 +02:00
14 lines
253 B
JavaScript
14 lines
253 B
JavaScript
/*---
|
|
description: >
|
|
`yield` is not a valid IdentifierReference in an AssignmentProperty within
|
|
generator function bodies.
|
|
es6id: 12.14.5
|
|
flags: [noStrict]
|
|
features: [generators]
|
|
negative: SyntaxError
|
|
---*/
|
|
|
|
(function*() {
|
|
{ yield } = {};
|
|
});
|