tor-browser

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

dflt-params-duplicates.js (1478B)


      1 // |reftest| error:SyntaxError
      2 // This file was procedurally generated from the following sources:
      3 // - src/function-forms/dflt-params-duplicates.case
      4 // - src/function-forms/syntax/async-arrow-function.template
      5 /*---
      6 description: It is a Syntax Error if BoundNames of FormalParameters contains any duplicate elements. (async arrow function expression)
      7 esid: sec-async-arrow-function-definitions
      8 features: [default-parameters]
      9 flags: [generated]
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 info: |
     14    14.7 Async Arrow Function Definitions
     15 
     16    AsyncArrowFunction :
     17      ...
     18      CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody
     19 
     20    AsyncConciseBody :
     21      { AsyncFunctionBody }
     22 
     23    ...
     24 
     25    Supplemental Syntax
     26 
     27    When processing an instance of the production AsyncArrowFunction :
     28    CoverCallExpressionAndAsyncArrowHead => AsyncConciseBody the interpretation of
     29    CoverCallExpressionAndAsyncArrowHead is refined using the following grammar:
     30 
     31    AsyncArrowHead :
     32      async ArrowFormalParameters
     33 
     34    14.1.2 Static Semantics: Early Errors
     35 
     36    StrictFormalParameters : FormalParameters
     37 
     38    - It is a Syntax Error if BoundNames of FormalParameters contains any
     39      duplicate elements.
     40 
     41    FormalParameters : FormalParameterList
     42 
     43    - It is a Syntax Error if IsSimpleParameterList of FormalParameterList is
     44      false and BoundNames of FormalParameterList contains any duplicate
     45      elements.
     46 
     47 ---*/
     48 $DONOTEVALUATE();
     49 
     50 
     51 (async (x = 0, x) => {
     52  
     53 });