| 1 |
// Copyright 2017 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
author: Caitlin Potter <[email protected]> |
| 6 |
esid: sec-identifiers-static-semantics-early-errors |
| 7 |
description: > |
| 8 |
`await` is a reserved keyword within async generator function bodies and may |
| 9 |
not be used as a label. |
| 10 |
info: | |
| 11 |
BindingIdentifier : await |
| 12 |
|
| 13 |
It is a Syntax Error if this production has an [Await] parameter. |
| 14 |
negative: |
| 15 |
phase: parse |
| 16 |
type: SyntaxError |
| 17 |
features: [async-iteration] |
| 18 |
---*/ |
| 19 |
|
| 20 |
throw "Test262: This statement should not be evaluated."; |
| 21 |
|
| 22 |
(async function*() { |
| 23 |
await: 1; |
| 24 |
}); |