MCPcopy Create free account
hub / github.com/nodejs/node / assertIterated

Function assertIterated

deps/v8/test/mjsunit/iterable-foreach.js:7–11  ·  view source on GitHub ↗
(expected, iterable)

Source from the content-addressed store, hash-verified

5// Flags: --allow-natives-syntax
6
7function assertIterated(expected, iterable) {
8 let result = [];
9 %IterableForEach(iterable, (x) => result.push(x));
10 assertEquals(expected, result);
11}
12
13// Basic Iteration
14// Smi Array

Callers 1

Calls 2

assertEqualsFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected