js/src/jit-test/tests/arguments/argsx-4.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/arguments/argsx-4.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +actual = '';
     1.5 +expected = '[object Arguments] undefined undefined,[object Arguments] undefined undefined,';
     1.6 +
     1.7 +function f() {
     1.8 +  g(arguments);
     1.9 +}
    1.10 +
    1.11 +function g(a, b, c) {
    1.12 +  h(arguments);
    1.13 +  a = 1;
    1.14 +  b = 2;
    1.15 +  c = 3;
    1.16 +  h(arguments);
    1.17 +}
    1.18 +
    1.19 +function h(a, b, c) {
    1.20 +  appendToActual(a + ' ' + b + ' ' + c);
    1.21 +}
    1.22 +
    1.23 +f(4, 5, 6);
    1.24 +
    1.25 +
    1.26 +assertEq(actual, expected)

mercurial