tor-browser

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

early-export-ill-formed-string.js (796B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2020 Bradley Farias. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 description: >
      6    Ill formed unicode cannot be an exported name
      7 esid: sec-module-semantics
      8 info: |
      9    ModuleExportName : StringLiteral
     10 
     11    It is a Syntax Error if IsStringWellFormedUnicode of the StringValue of StringLiteral is *false*.
     12 flags: [module]
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 features: [arbitrary-module-namespace-names]
     17 ---*/
     18 
     19 $DONOTEVALUATE();
     20 
     21 // 🌙 is '\uD83C\uDF19'
     22 export {Moon as "\uD83C",} from "./early-export-ill-formed-string.js";
     23 export {"\uD83C"} from "./early-export-ill-formed-string.js";
     24 import {'\uD83C' as Usagi} from "./early-export-ill-formed-string.js";
     25 
     26 function Moon() {}