tor-browser

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

export-expname-string-binding.js (627B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2020 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 description: >
      6  ExportDeclaration : `export` NamedExports `;`
      7  esid: sec-exports-static-semantics-early-errors
      8 info: |
      9  ExportDeclaration : `export` NamedExports `;`
     10 
     11  It is a Syntax Error if ReferencedBindings of |NamedExports| contains any
     12  |ModuleExportName|.
     13 flags: [module]
     14 features: [arbitrary-module-namespace-names]
     15 negative:
     16  phase: parse
     17  type: SyntaxError
     18 ---*/
     19 
     20 $DONOTEVALUATE();
     21 
     22 export { "foo" as "bar" }
     23 
     24 function foo() {}