tor-browser

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

arrowparameters-cover-no-yield-strict.js (467B)


      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    No parameter named "yield"
     13 
     14 negative:
     15  phase: parse
     16  type: SyntaxError
     17 flags: [onlyStrict]
     18 ---*/
     19 
     20 $DONOTEVALUATE();
     21 var af = (yield) => 1;