js/src/jit-test/tests/auto-regress/bug533705.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-61b1c094b729-linux
     2 // Flags: -j
     3 //
     4 function mk() {
     5   return (function () {});
     6 }
     8 function f() {
     9   var j = 55;
    11   var f = function () {
    12     return j;
    13   }
    15   var g = function() {
    16   }
    18   var a = [ mk(), f, g, mk(), mk() ];
    20   for (var i = 0; i < 5; ++i) {
    21     a[i].p = 99;
    22   }
    23 }
    25 f();

mercurial