tor-browser

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

top-level-no-rest-param.js (783B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/dynamic-import/no-rest-param.case
      4 // - src/dynamic-import/syntax/invalid/top-level.template
      5 /*---
      6 description: ImportCall is not extensible - no rest parameter (top level syntax)
      7 esid: sec-import-call-runtime-semantics-evaluation
      8 features: [dynamic-import]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    ImportCall :
     15        import( AssignmentExpression )
     16 
     17 
     18    ImportCall :
     19        import( AssignmentExpression[+In, ?Yield] )
     20 
     21    Forbidden Extensions
     22 
     23    - ImportCall must not be extended.
     24 
     25    This production doesn't allow the following production from ArgumentsList:
     26 
     27    ... AssignmentExpression
     28 ---*/
     29 
     30 $DONOTEVALUATE();
     31 
     32 import(...['']);