tor-browser

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

arrowparameters-cover-no-eval-strict.js (652B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 es6id: 14.2.1
      7 description: >
      8    ArrowParameters[Yield] :
      9      ...
     10      CoverParenthesizedExpressionAndArrowParameterList[?Yield]
     11 
     12    CoverParenthesizedExpressionAndArrowParameterList, refined by:
     13 
     14    ArrowFormalParameters[Yield, GeneratorParameter] :
     15      ( StrictFormalParameters[?Yield, ?GeneratorParameter] )
     16 
     17    No parameters named "eval"
     18 
     19 negative:
     20  phase: parse
     21  type: SyntaxError
     22 flags: [onlyStrict]
     23 ---*/
     24 
     25 $DONOTEVALUATE();
     26 var af = (eval) => 1;