iterables-containing-string-objects.js (535B)
1 // Copyright (C) 2025 Kevin Gibbons. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-iterator.zip 6 description: > 7 Accepts String objects as inputs. 8 includes: [compareArray.js] 9 features: [joint-iteration] 10 ---*/ 11 12 var result = Array.from(Iterator.zip([Object("abc"), Object("123")])); 13 14 assert.sameValue(result.length, 3); 15 assert.compareArray(result[0], ["a", "1"]); 16 assert.compareArray(result[1], ["b", "2"]); 17 assert.compareArray(result[2], ["c", "3"]); 18 19 reportCompare(0, 0);