| // Copyright (C) 2015 the V8 project authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| The ObjectBindingPattern with deep binding property lists |
| Destructuring Binding Patterns - Syntax |
| ObjectBindingPattern[Yield] : |
| { BindingPropertyList[?Yield] } |
| { BindingPropertyList[?Yield] , } |
| BindingPropertyList[Yield] : |
| BindingPropertyList[?Yield] , BindingProperty[?Yield] |
| function fn1({a: {p: q}, b: {r}, c: {s = 0}, d: {}}) {} |
| function fn2(x, {a: r, b: s, c: t}, y) {} |
| function fn3({x: {y: {z: {} = 42}}}) {} |