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

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 actual = '';
     2 expected = '151,';
     4 var g = 0;
     6 function add(a, b) {
     7   g = a + b;
     8 }
    10 function f() {
    11   add.apply(this, arguments);
    12 }
    14 for (var i = 0; i < 5; ++i) {
    15   f(100, 51);
    16 }
    17 appendToActual(g);
    20 assertEq(actual, expected)

mercurial