js/src/jit-test/tests/basic/testCallPick.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 function testCallPick() {
     2     function g(x,a) {
     3         x.f();
     4     }
     6     var x = [];
     7     x.f = function() { }
     9     var y = [];
    10     y.f = function() { }
    12     var z = [x,x,x,x,x,y,y,y,y,y];
    14     for (var i = 0; i < 10; ++i)
    15         g.call(this, z[i], "");
    16     return true;
    17 }
    18 assertEq(testCallPick(), true);

mercurial