tor-browser

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

in-condition.js (664B)


      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-conditional-operator
      6 es6id: 12.13
      7 description: >
      8  The expression's LogicalORExpression sub-expression cannot include the `in`
      9  keyword in contexts where it is disallowed.
     10 info: |
     11  Syntax
     12 
     13  ConditionalExpression[In, Yield] :
     14    LogicalORExpression[?In, ?Yield]
     15    LogicalORExpression[?In, ?Yield] ? AssignmentExpression[+In, ?Yield] : AssignmentExpression[?In, ?Yield]
     16 negative:
     17  phase: parse
     18  type: SyntaxError
     19 ---*/
     20 
     21 $DONOTEVALUATE();
     22 
     23 for ('' in {} ? 0 : 0; false; ) ;