summaryrefslogtreecommitdiff
path: root/src/async-generators/await-as-binding-identifier.case
blob: 94105c794a5fbf7e3f13f66ea427daca6284faaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2017 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-identifiers-static-semantics-early-errors
desc: >
  await is a reserved keyword within generator function bodies and may not be
  used as a binding identifier.
info: |
  BindingIdentifier : Identifier

  It is a Syntax Error if this production has a [Await] parameter and
  StringValue of Identifier is "await".
negative:
  phase: early
  type: SyntaxError
template: syntax
---*/

//- body
  var await;