summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js
blob: dacd19f3c206ce11256ec360aef2ba795dd38e9e (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) => {}) => {};