summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js')
-rw-r--r--js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js b/js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js
new file mode 100644
index 0000000000..af6f3d7a3a
--- /dev/null
+++ b/js/src/tests/test262/language/destructuring/binding/syntax/property-list-with-property-list.js
@@ -0,0 +1,29 @@
+// Copyright (C) 2015 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+es6id: 13.3.3
+description: >
+ The ObjectBindingPattern with deep binding property lists
+info: |
+ Destructuring Binding Patterns - Syntax
+
+ ObjectBindingPattern[Yield] :
+ { }
+ { BindingPropertyList[?Yield] }
+ { BindingPropertyList[?Yield] , }
+
+ BindingPropertyList[Yield] :
+ BindingProperty[?Yield]
+ BindingPropertyList[?Yield] , BindingProperty[?Yield]
+
+features: [destructuring-binding]
+---*/
+
+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}}}) {}
+
+reportCompare(0, 0);