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

Function g

deps/v8/test/mjsunit/es6/destructuring-assignment.js:383–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381 var count = 0;
382 var x, y, z;
383 function* g() {
384 count++;
385 yield;
386 count++;
387 yield;
388 count++;
389 yield;
390 }
391 var it = g();
392 assertEquals(it, [...x] = it);
393 assertEquals([undefined, undefined, undefined], x);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected