tor-browser

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

using-invalid-arraybindingpattern-does-not-break-element-access.js (655B)


      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 /*---
      6 esid: sec-let-const-using-and-await-using-declarations
      7 description: >
      8    'using' does not break existing element access
      9 features: [explicit-resource-management]
     10 ---*/
     11 
     12 var using = [], x = 0;
     13 
     14 {
     15  using[x] = null;
     16 }
     17 
     18 reportCompare(0, 0);