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

Function usingYieldInBody

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

Source from the content-addressed store, hash-verified

448(function testReturnFromClassLiteral() {
449
450 function usingYieldInBody() {
451 function* foo() {
452 class C {
453 [yield]() {}
454 }
455 }
456 var g = foo();
457 g.next();
458 return g.return(42).value;
459 }
460 assertEquals(42, usingYieldInBody());
461
462 function usingYieldInExtends() {

Callers 1

classes.jsFile · 0.85

Calls 3

fooFunction · 0.70
nextMethod · 0.65
returnMethod · 0.45

Tested by

no test coverage detected