js/src/jit-test/tests/ion/bug945294.js

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 // |jit-test| error:is not a function
     2 var arr = [];
     4 var C = function () {};
     5 C.prototype.dump = function () {};
     6 arr[0] = new C;
     8 C = function () {};
     9 C.prototype.dump = this;
    10 arr[1] = new C;
    12 function f() {
    13     for (var i = 0; i < arr.length; i++)
    14         arr[i].dump();
    15 }
    17 try {
    18     f();
    19 } catch (exc) {
    20     assertEq(exc.message.contains("is not a function"), true);
    21 }
    22 f();

mercurial