tor-browser

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

parse-err-hoist-lex-fun.js (755B)


      1 // |reftest| error:SyntaxError module
      2 // Copyright (C) 2016 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    Function declarations are interpreted as lexically-scoped in module code
      7 esid: sec-module-semantics-static-semantics-lexicallydeclarednames
      8 info: |
      9    ModuleItem : StatementListItem
     10 
     11        1. Return LexicallyDeclaredNames of StatementListItem.
     12 
     13    15.2.1.1 Static Semantics: Early Errors
     14 
     15    - It is a Syntax Error if any element of the LexicallyDeclaredNames of
     16      ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList.
     17 negative:
     18  phase: parse
     19  type: SyntaxError
     20 flags: [module]
     21 ---*/
     22 
     23 $DONOTEVALUATE();
     24 
     25 var f;
     26 function f() {}