tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

paragraph-separator.js (604B)


      1 // Copyright (C) 2018 Richard Gibson. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-literals-string-literals
      6 description: >
      7  U+2029 PARAGRAPH SEPARATOR can appear in string literals.
      8 info: |
      9  11.8.4 String Literals
     10 
     11  All code points may appear literally in a string literal except for the
     12  closing quote code points, U+005C (REVERSE SOLIDUS), U+000D (CARRIAGE RETURN),
     13  and U+000A (LINE FEED).
     14 features: [json-superset]
     15 ---*/
     16 
     17 // U+2029 in strings; UTF8(0x2029) = 0xE2 0x80 0xA9
     18 assert.sameValue("
", "\u2029");
     19 
     20 reportCompare(0, 0);