Debian Codegraph @

js/src/tests/test262/language/identifier-resolution/S11.1.2_A1_T2.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: The result of evaluating an Identifier is always a value of type Reference
6 es5id: 11.1.2_A1_T2
7 description: Trying to generate ReferenceError
8 ---*/
9
10 //CHECK#1
11 try {
12 this.z;
13 z;
14 throw new Test262Error('#1.1: this.z; z === undefined throw ReferenceError. Actual: ' + (z));
15 } catch(e) {
16 if ((e instanceof ReferenceError) !== true) {
17 throw new Test262Error('#1.2: this.z; z === undefined throw ReferenceError. Actual: ' + (e));
18 }
19 }
20
21 reportCompare(0, 0);