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

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

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  * "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  */
    11 var __func = function __exp__func(){return 0;};
    13 ////////////////////////////////////////////////
    14 // //////////////////////////////
    15 //CHECK#1
    16 if (typeof __func !== "function") {
    17 	$ERROR('#1: typeof __func === "function". Actual: typeof __func ==='+typeof __func);
    18 }
    19 //
    20 //////////////////////////////////////////////////////////////////////////////
    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 //////////////////////////////////////////////////////////////////////////////

mercurial