js/src/jit-test/tests/jaeger/deepBailAfterRunTracer.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.)

     1 var o = { };
     2 for (var i = 0; i <= 50; i++)
     3     o[i] = i;
     5 Object.defineProperty(o, "51", { get: assertEq });
     7 var threw = 0;
     8 function g(o, i) {
     9     try {
    10         assertEq(o[i], i);
    11     } catch (e) {
    12         threw++;
    13     }
    14 }
    16 function f() {
    17     for (var i = 0; i <= 51; i++)
    18       g(o, i);
    19 }
    21 f();
    22 f();
    23 f();
    24 assertEq(threw, 3);

mercurial