test262/src/dstr-binding/ary-ptrn-rest-not-final-obj.case
2016-05-10 11:51:44 -04:00

20 lines
571 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: Rest element (object binding pattern) may not be followed by any element
negative: SyntaxError
info: >
13.3.3 Destructuring Binding Patterns
ArrayBindingPattern[Yield] :
[ Elisionopt BindingRestElement[?Yield]opt ]
[ BindingElementList[?Yield] ]
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
//- elems
[...{ x }, y]
//- vals
[1, 2, 3]