tor-browser

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

param-dflt-yield-id-strict-strict.js (583B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 esid: sec-arrow-function-definitions
      7 es6id: 14.2
      8 description: >
      9  The `yield` token is interpreted as a FutureReservedWord within strict mode
     10 info: |
     11  ArrowFunction[In, Yield] :
     12 
     13    ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
     14 features: [default-parameters]
     15 flags: [onlyStrict]
     16 negative:
     17  phase: parse
     18  type: SyntaxError
     19 ---*/
     20 
     21 $DONOTEVALUATE();
     22 
     23 (x = yield) => {};