tor-browser

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

head-const-bound-names-dup.js (502B)


      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 description: The head's declaration may not contain duplicate entries
      6 negative:
      7  phase: parse
      8  type: SyntaxError
      9 info: |
     10    It is a Syntax Error if the BoundNames of ForDeclaration contains any
     11    duplicate entries.
     12 esid: sec-for-in-and-for-of-statements
     13 es6id: 13.7.5
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 for (const [x, x] in {}) {}