js/src/tests/test262/ch13/13.0/S13_A6_T1.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  * FunctionDeclaration can be overrided by other FunctionDeclaration with the same Identifier
     6  *
     7  * @path ch13/13.0/S13_A6_T1.js
     8  * @description Duplicating function declaration
     9  */
    11 function __func(){return 1};
    13 var __store__func = __func;
    15 var __1 = __func();
    17  function __func(){return 'A'};
    19 var __A = __func();
    21 //////////////////////////////////////////////////////////////////////////////
    22 //CHECK#1
    23 if (__store__func !== __func) {
    24 	$ERROR('#1: __store__func === __func. Actual: __store__func ==='+__store__func);
    25 }
    26 //
    27 ////////////////////////////////////////////////////////////////////////////// 
    29 //////////////////////////////////////////////////////////////////////////////
    30 //CHECK#2
    31 if (__1 !== __A) {
    32 	$ERROR('#2: __1 === __A. Actual: __1 ==='+__1);
    33 }
    34 //
    35 //////////////////////////////////////////////////////////////////////////////

mercurial