Debian Codegraph @

js/src/tests/test262/language/keywords/ident-ref-else.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright 2009 the Sputnik authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-identifiers-static-semantics-early-errors
7 es5id: 7.6.1.1_A1.8
8 description: Checking if execution of "else=1" fails
9 info: |
10 Identifier : IdentifierName but not ReservedWord
11
12 It is a Syntax Error if StringValue of IdentifierName is the same String
13 value as the StringValue of any ReservedWord except for yield.
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 else = 1;