Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
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 number conversion from undefined value is NaN
6 *
7 * @path ch09/9.3/S9.3_A1_T2.js
8 * @description Undefined convert to Number by implicit transformation
9 */
11 // CHECK#1
12 if (isNaN(+(undefined)) !== true) {
13 $ERROR('#1: +(undefined) === Not-a-Number. Actual: ' + (+(undefined)));
14 }
16 // CHECK#2
17 if (isNaN(+(void 0)) !== true) {
18 $ERROR('#2: +(void 0) === Not-a-Number. Actual: ' + (+(void 0)));
19 }
21 // CHECK#3
22 if (isNaN(+(eval("var x"))) !== true) {
23 $ERROR('#3: +(eval("var x")) === Not-a-Number. Actual: ' + (+(eval("var x"))));
24 }