js/src/jit-test/tests/jaeger/recompile/bug658212.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 gTestcases = Array;
     2 function TestCase(n, d, e, a) {
     3     this.description = d
     4     gTestcases[gTc] = this
     5 }
     6 TestCase.prototype.dump=function ()  +  +  +
     7           + this.description +  +
     8                +  + '\n';function printStatus (msg)
     9 function toPrinted(value) {
    10 }
    11 function reportCompare(expected, actual, description) {
    12     new TestCase("unknown-test-name", description, expected, actual)
    13 }
    14 gTc = 0;;
    15 function jsTestDriverEnd() {
    16     for (var i = 0; i < gTestcases.length; i++)
    17     gTestcases[i].dump()
    18 }
    19 var summary = 'Do not assert with try/finally inside finally';
    20 var expect = 'No Crash';
    21 reportCompare(expect, printStatus, summary);
    22 jsTestDriverEnd();
    23 jsTestDriverEnd();
    24 try {
    25     f
    26 } catch (ex) {
    27     actual = ''
    28 }
    29 reportCompare(expect, actual, 5);
    30 jsTestDriverEnd()

mercurial