js/src/tests/test262/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/test262/ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +// Copyright 2009 the Sputnik authors.  All rights reserved.
     1.5 +// This code is governed by the BSD license found in the LICENSE file.
     1.6 +
     1.7 +/**
     1.8 + * Arguments : (ArgumentList : ArgumentList, AssignmentExpression)
     1.9 + *
    1.10 + * @path ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js
    1.11 + * @description Return an internal list whose length is one greater than the
    1.12 + * length of ArgumentList and whose items are the items of ArgumentList, in order,
    1.13 + * followed at the end by GetValue(AssignmentExpression), which is the last item of
    1.14 + * the new list
    1.15 + */
    1.16 +
    1.17 +function f_arg(x,y,z) {
    1.18 +  return z;
    1.19 +}
    1.20 +
    1.21 +//CHECK#1
    1.22 +if (f_arg(x=1,y=x,x+y) !== 2) {
    1.23 +  $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)));    
    1.24 +}
    1.25 +

mercurial