tor-browser

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

using-for-statement.js (829B)


      1 // |reftest| shell-option(--enable-explicit-resource-management) skip-if(!(this.hasOwnProperty('getBuildConfiguration')&&getBuildConfiguration('explicit-resource-management'))||!xulRuntime.shell) -- explicit-resource-management is not enabled unconditionally, requires shell-options
      2 // Copyright (C) 2023 Ron Buckton. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-for-statement
      6 description: >
      7    using: 'for (using x = ' and 'for (using of =' are interpreted as for loop
      8 features: [explicit-resource-management]
      9 ---*/
     10 
     11 for (using x = null;;) break;
     12 
     13 // 'using of' lookahead restriction only applies to 'for-of'/'for-await-of'. In 'for' statement it is
     14 // handled similar to `for (let of = null;;)`:
     15 for (using of = null;;) break;
     16 
     17 reportCompare(0, 0);