2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: Get arguments of function
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 10.6_A7
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Use property arguments
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
function f1() {
|
|
|
|
return arguments;
|
|
|
|
}
|
2021-07-21 22:42:51 +02:00
|
|
|
|
2011-09-07 08:35:18 +02:00
|
|
|
//CHECK#1-5
|
2021-07-21 22:42:51 +02:00
|
|
|
for(var i = 1; i < 5; i++){
|
|
|
|
if (f1(1,2,3,4,5)[i] !== (i+1))
|
|
|
|
throw new Test262Error("#"+i+": Returning function's arguments work wrong, f1(1,2,3,4,5)["+i+"] !== "+(i+1));
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|