aboutsummaryrefslogtreecommitdiffstats
path: root/src/dstr-assignment/array-elision-val-undef.case
blob: 4c7bf69fc7f6acc02ee9810d7c660eaa15ad148e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: >
    An ArrayAssignmentPattern containing only Elisions requires iterable values
    and throws for `undefined`.
template: error
es6id: 12.14.5.2
---*/

//- error
TypeError
//- elems
[,]
//- vals
undefined