js/src/jit-test/tests/basic/testContinueWithLabel4.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 // bug 511575
     3 Function.prototype.X = 42;
     5 function ownProperties() {
     6     var props = {};
     7     var r = function () {};
     9     outer:
    10     for (var a in r) {
    11         for (var b in r) {
    12             if (a == b) {
    13                 continue outer;
    14             }
    15         }
    16         print("SHOULD NOT BE REACHED");
    17         props[a] = true;
    18     }
    19     return props;
    20 }
    22 for (var i = 0; i < 12; ++i) {
    23     print(i);
    24     ownProperties();
    25 }

mercurial