js/src/tests/test262/ch13/13.2/S13.2.1_A4_T4.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  * Objects as arguments are passed by reference
     6  *
     7  * @path ch13/13.2/S13.2.1_A4_T4.js
     8  * @description Adding new number property to a function argument within the function body,
     9  * where array element "arguments[0]" is an object defined with "var __obj={}"
    10  */
    12 function __func(){
    13     arguments[0]["E"]=2.74;
    14 }
    16 var __obj={};
    18 __func(__obj);
    20 //////////////////////////////////////////////////////////////////////////////
    21 //CHECK#1
    22 if (__obj.E !== 2.74) {
    23 	$ERROR('#1: __obj.E === 2.74. Actual: __obj.E ==='+__obj.E);
    24 }
    25 //
    26 //////////////////////////////////////////////////////////////////////////////

mercurial