blob: ebd065297629cf910d48cc9346fcc77b2ab30d65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
template: default
desc: Binding as specified via property name and identifier
info: |
13.3.3.7 Runtime Semantics: KeyedBindingInitialization
SingleNameBinding : BindingIdentifier Initializeropt
[...]
8. Return InitializeReferencedBinding(lhs, v).
---*/
//- elems
{ x: y }
//- vals
{ x: 23 }
//- body
assert.sameValue(y, 23);
assert.throws(ReferenceError, function() {
x;
});
|