js/src/jit-test/tests/baseline/bug840984.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 foo() {
     2     x = null;
     3 }
     4 function f() {
     5     for (var i=0; i<99; i++) {
     6 	x = null;
     7 	if (i >= 97) {
     8 	    gc();
     9 	    gc();
    10 	    foo();
    11 	}
    12 	x = {};
    13 	if (i >= 97)
    14 	    foo();
    15     }
    16 }
    17 f();

mercurial