js/src/jit-test/tests/arguments/args2d.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 actual = '';
     2 expected = 'g 0 0 0,g 1 2 1,g 2 4 4,g 3 6 9,g 4 8 16,';
     4 function g(x, y, z) {
     5   appendToActual('g ' + x + ' ' + y + ' ' + z);
     6 }
     8 function f() {
     9   g.apply(this, arguments);
    10 }
    12 for (var i = 0; i < 5; ++i) {
    13   f(i, i*2, i*i);
    14 }
    17 assertEq(actual, expected)

mercurial