tor-browser

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

await-using-invalid-for-in.js (712B)


      1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) error:SyntaxError -- explicit-resource-management is not enabled unconditionally, requires shell-options
      2 // Copyright (C) 2011 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-for-in-and-for-of-statements
      6 description: >
      7    await using: not allowed in for..in
      8 negative:
      9  phase: parse
     10  type: SyntaxError
     11 features: [explicit-resource-management]
     12 ---*/
     13 
     14 $DONOTEVALUATE();
     15 async function f() {
     16  for (await using x in [1, 2, 3]) { }
     17 }