tor-browser

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

early-dup-top-function-async.js (609B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright 2021 Chengzhong Wu. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-module-semantics-static-semantics-early-errors
      7 description: >
      8    It is a Syntax Error if the LexicallyDeclaredNames of ModuleItemList
      9    contains any duplicate entries.
     10    At the top level of a Module, function declarations are treated like
     11    lexical declarations rather than like var declarations.
     12 flags: [module]
     13 negative:
     14  phase: parse
     15  type: SyntaxError
     16 ---*/
     17 
     18 $DONOTEVALUATE();
     19 
     20 function x() {}
     21 async function x() {}