Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / jit-test / tests / arguments / args6.js
1 actual = '';
2 expected = '6,';
3
4 // tracing length
5
6 var g = 0;
7
8 function h(args) {
9   g = args.length;
10 }
11
12 function f() {
13   h(arguments);
14 }
15
16 for (var i = 0; i < 5; ++i) {
17   f(10, 20, 30, 40, 50, 60);
18 }
19 appendToActual(g);
20
21
22 assertEq(actual, expected)