summaryrefslogtreecommitdiff
path: root/src/generators/yield-as-label-identifier-escaped.case
blob: a2fcf414647f8d2d88f08c3034a90d1c2475d00d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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 label identifier.
info: |
  LabelIdentifier : Identifier

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

//- setup
throw "Test262: This statement should not be evaluated.";
//- body
  yi\u0065ld: ;