tor-browser

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

length.js (445B)


      1 // |reftest| skip-if(!this.hasOwnProperty('AsyncIterator')) -- AsyncIterator is not enabled unconditionally
      2 /*---
      3  The "length" property of AsyncIterator
      4 ---*/
      5 
      6 const propDesc = Reflect.getOwnPropertyDescriptor(AsyncIterator, 'length');
      7 assertEq(propDesc.value, 0);
      8 assertEq(propDesc.writable, false);
      9 assertEq(propDesc.enumerable, false);
     10 assertEq(propDesc.configurable, true);
     11 
     12 if (typeof reportCompare === 'function')
     13  reportCompare(0, 0);