js/src/tests/ecma/LexicalConventions/7.7.3-2.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 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 /**
     8    File Name:          7.7.3-2.js
     9    ECMA Section:       7.7.3 Numeric Literals
    11    Description:
    13    This is a regression test for
    14    http://scopus.mcom.com/bugsplat/show_bug.cgi?id=122884
    16    Waldemar's comments:
    18    A numeric literal that starts with either '08' or '09' is interpreted as a
    19    decimal literal; it should be an error instead.  (Strictly speaking, according
    20    to ECMA v1 such literals should be interpreted as two integers -- a zero
    21    followed by a decimal number whose first digit is 8 or 9, but this is a bug in
    22    ECMA that will be fixed in v2.  In any case, there is no place in the grammar
    23    where two consecutive numbers would be legal.)
    25    Author:             christine@netscape.com
    26    Date:               15 june 1998
    28 */
    29 var SECTION = "7.7.3-2";
    30 var VERSION = "ECMA_1";
    31 var TITLE   = "Numeric Literals";
    32 var BUGNUMBER="122884";
    34 startTest();
    36 writeHeaderToLog( SECTION + " "+ TITLE);
    38 new TestCase( SECTION,
    39 	      "9",
    40 	      9,
    41 	      9 );
    43 new TestCase( SECTION,
    44 	      "09",
    45 	      9,
    46 	      09 );
    48 new TestCase( SECTION,
    49 	      "099",
    50 	      99,
    51 	      099 );
    54 new TestCase( SECTION,
    55 	      "077",
    56 	      63,
    57 	      077 );
    59 test();

mercurial