js/src/tests/ecma_5/extensions/regress-bug629723.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 f(foo) {
     2     "use strict";
     3     foo.bar;
     4 }
     6 var actual;
     7 try {
     8     f();
     9     actual = "no error";
    10 } catch (x) {
    11     actual = (x instanceof TypeError) ? "type error" : "some other error";
    12     actual += (/use strict/.test(x)) ? " with directive" : " without directive";
    13 }
    15 reportCompare("type error without directive", actual,
    16               "decompiled expressions in error messages should not include directive prologues");

mercurial