summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/async-arrow-function/await-as-param-rest-nested-arrow-parameter-position.js
blob: 92d65c630267b00acef6c2e929833cd9806657e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |reftest| error:SyntaxError
// Copyright (C) 2018 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-async-arrow-function-definitions
description: >
  It is a SyntaxError if FormalParameters' default expressions contains await.
negative:
  phase: parse
  type: SyntaxError
features: [async-functions]
---*/

$DONOTEVALUATE();

async(a = (...await) => {}) => {};