mirror of
https://github.com/tc39/test262.git
synced 2025-08-28 05:18:32 +02:00
23 lines
714 B
JavaScript
23 lines
714 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/**
|
|
* Arguments : (ArgumentList : ArgumentList, AssignmentExpression)
|
|
*
|
|
* @path ch11/11.2/11.2.4/S11.2.4_A1.4_T3.js
|
|
* @description Return an internal list whose length is one greater than the
|
|
* length of ArgumentList and whose items are the items of ArgumentList, in order,
|
|
* followed at the end by GetValue(AssignmentExpression), which is the last item of
|
|
* the new list
|
|
*/
|
|
|
|
function f_arg(x,y,z) {
|
|
return z;
|
|
}
|
|
|
|
//CHECK#1
|
|
if (f_arg(x=1,y=x,x+y) !== 2) {
|
|
$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)));
|
|
}
|
|
|