tor-browser

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

head-using-bound-names-let.js (794B)


      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) 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-in-and-for-of-statements
      6 description: ForDeclaration containing 'using' may not contain a binding for `let`
      7 negative:
      8  phase: parse
      9  type: SyntaxError
     10 info: |
     11  It is a Syntax Error if the BoundNames of ForDeclaration contains "let".
     12 flags: [noStrict]
     13 features: [explicit-resource-management]
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 for (using let of []) {}