js/src/jit-test/tests/auto-regress/bug759306.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 // |jit-test| error:InternalError
     3 // Binary: cache/js-dbg-32-4ce3983a43f4-linux
     4 // Flags:
     5 //
     7 function assertEq(setter) {
     8         if (setter > 10)
     9             return {assertEq: 3.3};
    10         return {__proto__: assertEq(setter + 1)};
    11     }
    12 function testX() {
    13   var x = 2;
    14   var local0 = x;
    15   return { local0: local0 };
    16 }
    17 var resultsX = testX();
    18 assertEq(resultsX.local0, 2);
    19 gczeal(2);
    20 assertEq(new (Proxy.createFunction({}, function(){}, function(){})), undefined);

mercurial