tor-browser

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

supports-iterable.js (497B)


      1 // Copyright (C) 2023 Michael Ficarra. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-iterator.from
      5 description: >
      6  Iterator.from supports iterables
      7 info: |
      8  Iterator.from ( O )
      9 
     10 includes: [compareArray.js]
     11 features: [iterator-helpers]
     12 flags: []
     13 ---*/
     14 assert.compareArray(Array.from(Iterator.from([0, 1, 2, 3])), [0, 1, 2, 3]);
     15 assert.compareArray(Array.from(Iterator.from(new String('str'))), ['s', 't', 'r']);
     16 
     17 reportCompare(0, 0);