| // 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 a valid IdentifierReference in an AssignmentProperty outside of | |
| strict mode and generator functions. | |
| template: default | |
| es6id: 12.14.5 | |
| flags: [noStrict] | |
| ---*/ | |
| //- setup | |
| var yield; | |
| //- elems | |
| { yield } | |
| //- vals | |
| { yield: 3 } | |
| //- body | |
| assert.sameValue(yield, 3); |