summaryrefslogtreecommitdiff
path: root/src/dstr-assignment/obj-id-identifier-yield-ident-valid.case
blob: fb7ce1808c4b7b3b3f4596a16f1ef56ab7902c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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);