js/src/jit-test/tests/ion/bug913749.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 y = new Float32Array(11);
     2 x = [];
     4 Object.defineProperty(x, 18, {
     5     get: (function() {
     6         y.length;
     7     }),
     8 });
     9 this.toSource();
    11 y = undefined;
    13 for (var i = 0; i < 3; i++) {
    14     try {
    15 	x.toString();
    16 	assertEq(0, 1);
    17     } catch (e) {
    18 	assertEq(e.message, "y is undefined");
    19     }
    20 }

mercurial