js/src/jit-test/tests/jaeger/argumentsOptimize-1.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     2 function bar() {
     3   foo.arguments.length = 10;
     4 }
     6 function foo(x) {
     7   var a = arguments;
     8   var n = 0;
     9   bar();
    10   assertEq(x, 5);
    11   assertEq(a.length, 1);
    12 }
    14 foo(5);

mercurial