mirror of
https://github.com/tc39/test262.git
synced 2025-11-30 02:23:10 +01:00
18 lines
513 B
JavaScript
18 lines
513 B
JavaScript
// Copyright (C) 2025 Kevin Gibbons. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-iterator.zip
|
|
description: >
|
|
Accepts String objects as inputs.
|
|
includes: [compareArray.js]
|
|
features: [joint-iteration]
|
|
---*/
|
|
|
|
var result = Array.from(Iterator.zip([Object("abc"), Object("123")]));
|
|
|
|
assert.sameValue(result.length, 3);
|
|
assert.compareArray(result[0], ["a", "1"]);
|
|
assert.compareArray(result[1], ["b", "2"]);
|
|
assert.compareArray(result[2], ["c", "3"]);
|