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

Function next

test/fixtures/wpt/wasm/jsapi/constructor/multi-value.any.js:87–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 actual.push("@@iterator call");
86 return {
87 get next() {
88 actual.push("next getter");
89 return function next(...args) {
90 assert_array_equals(args, []);
91 let j = ++i;
92 actual.push(`next call ${j}`);
93 if (j > result.length) {
94 return {
95 get done() {
96 actual.push(`done call ${j}`);
97 return true;
98 }
99 };
100 }
101 return {
102 get done() {
103 actual.push(`done call ${j}`);
104 return false;
105 },
106 get value() {
107 actual.push(`value call ${j}`);
108 return {
109 get valueOf() {
110 actual.push(`valueOf get ${j}`);
111 return function() {
112 actual.push(`valueOf call ${j}`);
113 return result[j - 1];
114 };
115 }
116 };
117 }
118 };
119 };
120 }
121 };
122 }
123 },

Callers

nothing calls this directly

Calls 2

assert_array_equalsFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected