test262/src/dstr-assignment/obj-id-identifier-yield-expr.case
2018-10-23 13:51:17 +02:00

26 lines
474 B
Plaintext

// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
yield is not a valid IdentifierReference in an AssignmentProperty within
generator function bodies.
template: syntax
es6id: 12.14.5
flags: [noStrict]
features: [generators]
negative:
phase: parse
type: SyntaxError
---*/
//- setup
$DONOTEVALUATE();
(function*() {
//- elems
{ yield }
//- vals
{}
//- teardown
});