Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * The result of evaluating an Identifier is always a value of type Reference
6 *
7 * @path ch11/11.1/11.1.2/S11.1.2_A1_T1.js
8 * @description Creating variables without defining it
9 */
11 //CHECK#1
12 if (this.x !== undefined) {
13 $ERROR('#1: this.x === undefined. Actual: ' + (this.x));
14 }
16 //CHECK#2
17 var object = new Object();
18 if (object.prop !== undefined) {
19 $ERROR('#2: var object = new Object(); object.prop === undefined. Actual: ' + (object.prop));
20 }
22 //CHECK#3
23 this.y++;
24 if (isNaN(y) !== true) {
25 $ERROR('#3: this.y++; y === Not-a-Number. Actual: ' + (y));
26 }