| 1 |
// Copyright (C) 2016 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
/*--- |
| 4 |
path: language/statements/const/dstr- |
| 5 |
name: > |
| 6 |
`const` statement |
| 7 |
esid: sec-let-and-const-declarations-runtime-semantics-evaluation |
| 8 |
es6id: 13.3.1.4 |
| 9 |
features: [destructuring-binding] |
| 10 |
info: | |
| 11 |
LexicalBinding : BindingPattern Initializer |
| 12 |
|
| 13 |
1. Let rhs be the result of evaluating Initializer. |
| 14 |
2. Let value be GetValue(rhs). |
| 15 |
3. ReturnIfAbrupt(value). |
| 16 |
4. Let env be the running execution context's LexicalEnvironment. |
| 17 |
5. Return the result of performing BindingInitialization for BindingPattern |
| 18 |
using value and env as the arguments. |
| 19 |
---*/ |
| 20 |
|
| 21 |
const /*{ elems }*/ = /*{ vals }*/; |
| 22 |
|
| 23 |
/*{ body }*/ |