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

Function usingYieldInExtends

deps/v8/test/mjsunit/es6/classes.js:462–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

460 assertEquals(42, usingYieldInBody());
461
462 function usingYieldInExtends() {
463 function* foo() {
464 class C extends (yield) {};
465 }
466 var g = foo();
467 g.next();
468 return g.return(42).value;
469 }
470 assertEquals(42, usingYieldInExtends());
471
472})();

Callers 1

classes.jsFile · 0.85

Calls 3

fooFunction · 0.70
nextMethod · 0.65
returnMethod · 0.45

Tested by

no test coverage detected