tor-browser

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

special-characters.js (549B)


      1 // Copyright (C) 2014 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 21.1.2.4
      5 description: >
      6    When used as a tag function of a tagged template, `String.raw` should
      7    return the "raw" representation of the template.
      8 ---*/
      9 
     10 assert.sameValue(
     11  String.raw`\u0065\`\r\r\n\n${'test'}check`,
     12  '\\u0065\\`\\r\\r\\n\\ntestcheck',
     13  'Unicode escape sequences'
     14 );
     15 assert.sameValue(
     16  String.raw`\\
     17 \
     18 `,
     19  '\\\n\\\n\\\n',
     20  'Literal characters'
     21 );
     22 
     23 reportCompare(0, 0);