js/src/tests/test262/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.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  * Arguments : (ArgumentList : ArgumentList, AssignmentExpression)
     6  *
     7  * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js
     8  * @description Return an internal list whose length is one greater than the
     9  * length of ArgumentList and whose items are the items of ArgumentList, in order,
    10  * followed at the end by GetValue(AssignmentExpression), which is the last item of
    11  * the new list
    12  */
    14 function f_arg(x,y,z) {
    15   return z;
    16 }
    18 //CHECK#1
    19 if (f_arg(x=1,y=x,x+y) !== 2) {
    20   $ERROR('#1: function f_arg(x,y,z) {return z;} f_arg(x=1,y=x,x+y) === 2. Actual: ' + (f_arg(x=1,y=x,x+y)));    
    21 }

mercurial