| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: "Arguments : (ArgumentList : ArgumentList, AssignmentExpression)" |
| 6 |
es5id: 11.2.4_A1.4_T3 |
| 7 |
description: > |
| 8 |
Return an internal list whose length is one greater than the |
| 9 |
length of ArgumentList and whose items are the items of |
| 10 |
ArgumentList, in order, followed at the end by |
| 11 |
GetValue(AssignmentExpression), which is the last item of the new |
| 12 |
list |
| 13 |
flags: [noStrict] |
| 14 |
---*/ |
| 15 |
|
| 16 |
function f_arg(x,y,z) { |
| 17 |
return z; |
| 18 |
} |
| 19 |
|
| 20 |
//CHECK#1 |
| 21 |
if (f_arg(x=1,y=x,x+y) !== 2) { |
| 22 |
$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))); |
| 23 |
} |