Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 * Result of boolean conversion from undefined value is false
6 *
7 * @path ch09/9.2/S9.2_A1_T2.js
8 * @description Undefined, void and others are converted to Boolean by implicit transformation
9 */
11 // CHECK#1
12 if (!(undefined) !== true) {
13 $ERROR('#1: !(undefined) === true. Actual: ' + (!(undefined)));
14 }
16 // CHECK#2
17 if (!(void 0) !== true) {
18 $ERROR('#2: !(undefined) === true. Actual: ' + (!(undefined)));
19 }
21 // CHECK#3
22 if (!(eval("var x")) !== true) {
23 $ERROR('#3: !(eval("var x")) === true. Actual: ' + (!(eval("var x"))));
24 }