js/src/tests/test262/ch13/13.0/S13_A1.js

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:c0b6f7c61f23
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 * "x=function y(){}" statement does not store a reference to the new function in the varaible y(Identifier)
6 *
7 * @path ch13/13.0/S13_A1.js
8 * @description Checking the type of y
9 */
10
11 var __func = function __exp__func(){return 0;};
12
13 ////////////////////////////////////////////////
14 // //////////////////////////////
15 //CHECK#1
16 if (typeof __func !== "function") {
17 $ERROR('#1: typeof __func === "function". Actual: typeof __func ==='+typeof __func);
18 }
19 //
20 //////////////////////////////////////////////////////////////////////////////
21
22
23
24 //////////////////////////////////////////////////////////////////////////////
25 //CHECK#2
26 if (typeof __exp__func !== "undefined"){
27 $ERROR('#2: typeof __exp__func === "undefined". Actual: typeof __exp__func ==='+typeof __exp__func);
28 }
29 //
30 //////////////////////////////////////////////////////////////////////////////
31

mercurial