mirror of
https://github.com/tc39/test262.git
synced 2025-06-18 21:10:33 +02:00
24 lines
593 B
Plaintext
24 lines
593 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: >
|
|
yield is a reserved keyword within generator function bodies and may not be
|
|
used as an identifier reference.
|
|
info: |
|
|
IdentifierReference : Identifier
|
|
|
|
It is a Syntax Error if this production has a [Yield] parameter and
|
|
StringValue of Identifier is "yield".
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
template: syntax
|
|
---*/
|
|
|
|
//- setup
|
|
failIfCodeGetsEvaluated();
|
|
//- body
|
|
void yield;
|