js/src/tests/ecma/LexicalConventions/7.4.3-3-n.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 // |reftest| skip -- obsolete test
     2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     8 /**
     9    File Name:          7.4.3-3-n.js
    10    ECMA Section:       7.4.3
    12    Description:
    13    The following words are used as keywords in proposed extensions and are
    14    therefore reserved to allow for the possibility of future adoption of
    15    those extensions.
    17    FutureReservedWord :: one of
    18    case    debugger    export      super
    19    catch   default     extends     switch
    20    class   do          finally     throw
    21    const   enum        import      try
    23    Author:             christine@netscape.com
    24    Date:               12 november 1997
    25 */
    26 var SECTION = "7.4.3-3-n";
    27 var VERSION = "ECMA_1";
    28 startTest();
    29 var TITLE   = "Future Reserved Words";
    31 writeHeaderToLog( SECTION + " "+ TITLE);
    33 DESCRIPTION = "var export = true";
    34 EXPECTED = "error";
    36 new TestCase( SECTION,  "var export = true",     "error",    eval("var export = true") );
    38 test();

mercurial