summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/expressions/async-arrow-function/await-as-param-nested-arrow-parameter-position.js
blob: db0fdae8e41643b59af305788954a6113e089d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |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
---*/

$DONOTEVALUATE();

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