summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/destructuring/binding/syntax/array-pattern-with-no-elements.js
blob: 38093c9bf771b4a8621a118cb9ec7224e8b93d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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 ArrayBindingPattern with no elements
info: |
  Destructuring Binding Patterns - Syntax

  ArrayBindingPattern[Yield] :
    [ Elisionopt BindingRestElement[?Yield]opt ]
    [ BindingElementList[?Yield] ]
    [ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
features: [destructuring-binding]
---*/

function fn([]) {}

reportCompare(0, 0);