mirror of
https://github.com/tc39/test262.git
synced 2025-07-16 10:34:44 +02:00
21 lines
486 B
Plaintext
21 lines
486 B
Plaintext
// 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: Trailing comma is allowed following BindingPropertyList
|
|
info: |
|
|
13.3.3 Destructuring Binding Patterns
|
|
|
|
ObjectBindingPattern[Yield] :
|
|
{ }
|
|
{ BindingPropertyList[?Yield] }
|
|
{ BindingPropertyList[?Yield] , }
|
|
---*/
|
|
|
|
//- elems
|
|
{ x: [y], }
|
|
//- vals
|
|
{ x: [45] }
|
|
//- body
|
|
assert.sameValue(y,45);
|