summaryrefslogtreecommitdiff
path: root/src/function-forms/dflt-params-rest.case
blob: 46096a65fe2d9edabaf02c7e63f9f2e3814fbfab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: RestParameter does not support an initializer
template: syntax
info: |
  14.1 Function Definitions

  Syntax

  FunctionRestParameter[Yield] :

    BindingRestElement[?Yield]

  13.3.3 Destructuring Binding Patterns

  Syntax

  BindingRestElement[Yield] :

    ...BindingIdentifier[?Yield]
    ...BindingPattern[?Yield]
features: [default-parameters]
negative:
  phase: parse
  type: SyntaxError
---*/

//- setup
throw "Test262: This statement should not be evaluated.";
//- params
...x = []