js/src/tests/ecma_5/Expressions/object-literal-accessor-property-name.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 // Any copyright is dedicated to the Public Domain.
     2 // http://creativecommons.org/licenses/publicdomain/
     4 var gTestfile = 'object-literal-accessor-property-name.js';
     5 //-----------------------------------------------------------------------------
     6 var BUGNUMBER = 715682;
     7 var summary =
     8   "Permit numbers and strings containing numbers as accessor property names";
     9 print(BUGNUMBER + ": " + summary);
    11 //-----------------------------------------------------------------------------
    13 ({ get "0"() { } });
    14 ({ get 0() { } });
    15 ({ get 0.0() { } });
    16 ({ get 0.() { } });
    17 ({ get 1.() { } });
    18 ({ get 5.2322341234123() { } });
    20 ({ set "0"(q) { } });
    21 ({ set 0(q) { } });
    22 ({ set 0.0(q) { } });
    23 ({ set 0.(q) { } });
    24 ({ set 1.(q) { } });
    25 ({ set 5.2322341234123(q) { } });
    27 //-----------------------------------------------------------------------------
    29 reportCompare(true, true);

mercurial