test262/src/async-functions/await-as-label-identifier.case
2018-10-23 13:51:17 +02:00

24 lines
572 B
Plaintext

// 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 label identifier.
info: |
LabelIdentifier : Identifier
It is a Syntax Error if this production has a [Await] parameter and
StringValue of Identifier is "await".
negative:
phase: parse
type: SyntaxError
template: syntax
---*/
//- setup
$DONOTEVALUATE();
//- body
await: ;