js/src/jit-test/tests/auto-regress/bug771157.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 // Binary: cache/js-dbg-64-9cf3ea112635-linux
     2 // Flags: --ion-eager
     3 //
     5 var callStack = new Array();
     6 function TestCase(n, d, e, a) {
     7   this.expect = e;
     8   this.actual = a;
     9   this.passed = getTestCaseResult(e, a);
    10   dump(+ this.path + ' ' + 'reason: ' + toPrinted(this.reason)+ '\n');
    11 };
    12 function reportCompare (expected, actual, description) {
    13   var testcase = new TestCase("unknown-test-name", description, expected, actual);
    14 }
    15 function enterFunc (funcName) {
    16   callStack.push(funcName);
    17   var lastFunc = callStack.pop();
    18   reportCompare(funcName, lastFunc, "Test driver failure wrong exit function ");
    19 }
    20 try {
    21 var summary = 'String static methods';
    22 var actual = '';
    23 expect = '2';
    24 reportCompare(expect, actual, summary + " String.toUpperCase(new Boolean(true))");
    25 } catch(exc0) {}
    26 try {
    27 function TestCase(n, d, e, a) {}
    28 enterFunc ('test');
    29 reportCompare(expect, actual, summary);
    30 } catch(exc2) {}

mercurial