summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/rest-parameters/position-invalid.js
blob: 1d57e18aab14f33ea94a8063ddefa99c7a981bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// |reftest| error:SyntaxError
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.1
description: >
    Rest parameter cannot be followed by another named parameter
negative:
  phase: parse
  type: SyntaxError
---*/

$DONOTEVALUATE();
function f(a, ...b, c) {}