tor-browser

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

in-iteration-stmt.js (565B)


      1 // |reftest| error:SyntaxError
      2 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-generator-function-definitions
      6 es6id: 14.4
      7 description: >
      8  YieldExpression operand may not include the `in` keyword in contexts where it
      9  is disallowed
     10 info: |
     11  Syntax
     12 
     13  yield [no LineTerminator here] AssignmentExpression[?In, +Yield]
     14 negative:
     15  phase: parse
     16  type: SyntaxError
     17 features: [generators]
     18 ---*/
     19 
     20 $DONOTEVALUATE();
     21 
     22 function* g() {
     23  for (yield '' in {}; ; ) ;
     24 }