blob: 57a48c701097631313715788492e8110f7bedda0 [file] [log] [blame] [edit]
// 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 a binding identifier.
info: |
BindingIdentifier : 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
$DONOTEVALUATE();
//- body
var yield;