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 * Any variable that has not been assigned a value has the value undefined
6 *
7 * @path ch08/8.1/S8.1_A2_T2.js
8 * @description Function return undefined
9 */
11 // CHECK#1
12 function test1(x) {
13 return x;
14 }
16 if (!(test1() === void 0)) {
17 $ERROR('#1: function test1(x){return x} test1() === void 0. Actual: ' + (test1()));
18 }
20 // CHECK#2
21 function test2() {
22 }
24 if (!(test2() === void 0)) {
25 $ERROR('#2: function test2(){} test2() === void 0. Actual: ' + (test2()));
26 }