tor-browser

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

escape-sequence-meta.js (1032B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2018 André Bargull. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-left-hand-side-expressions
      7 description: >
      8  "meta" in import.meta must not contain escape sequences.
      9 info: |
     10  5.1.5 Grammar Notation
     11 
     12  Terminal symbols are shown in fixed width
     13  font, both in the productions of the grammars and throughout this specification whenever the
     14  text directly refers to such a terminal symbol. These are to appear in a script exactly as
     15  written. All terminal symbol code points specified in this way are to be understood as the
     16  appropriate Unicode code points from the Basic Latin range, as opposed to any similar-looking
     17  code points from other Unicode ranges.
     18 
     19  12.3 Left-Hand-Side Expressions
     20    MetaProperty:
     21      NewTarget
     22      ImportMeta
     23 
     24    ImportMeta:
     25      import.meta
     26 flags: [module]
     27 negative:
     28  phase: parse
     29  type: SyntaxError
     30 features: [import.meta]
     31 ---*/
     32 
     33 $DONOTEVALUATE();
     34 
     35 import.m\u0065ta;