js/src/jit-test/tests/arguments/args2d.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 actual = '';
     2 expected = 'g 0 0 0,g 1 2 1,g 2 4 4,g 3 6 9,g 4 8 16,';
     4 function g(x, y, z) {
     5   appendToActual('g ' + x + ' ' + y + ' ' + z);
     6 }
     8 function f() {
     9   g.apply(this, arguments);
    10 }
    12 for (var i = 0; i < 5; ++i) {
    13   f(i, i*2, i*i);
    14 }
    17 assertEq(actual, expected)

mercurial