Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review: https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 actual = '';
2 expected = 'g 0 0 0,g 1 2 1,g 2 4 4,g 3 6 9,g 4 8 16,';
3
4 function g(x, y, z) {
5 appendToActual('g ' + x + ' ' + y + ' ' + z);
6 }
7
8 function f() {
9 g.apply(this, arguments);
10 }
11
12 for (var i = 0; i < 5; ++i) {
13 f(i, i*2, i*i);
14 }
15
16
17 assertEq(actual, expected)