MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxNewGeneratorResult

Function fxNewGeneratorResult

xs/sources/xsGenerator.c:1305–1314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303}
1304
1305void fxNewGeneratorResult(txMachine* the, txBoolean done)
1306{
1307 txSlot* value = the->stack;
1308 txSlot* slot;
1309 mxPush(mxObjectPrototype);
1310 slot = fxLastProperty(the, fxNewObjectInstance(the));
1311 slot = fxNextSlotProperty(the, slot, value, mxID(_value), XS_DONT_DELETE_FLAG | XS_DONT_SET_FLAG);
1312 slot = fxNextBooleanProperty(the, slot, done, mxID(_done), XS_DONT_DELETE_FLAG | XS_DONT_SET_FLAG);
1313 mxPullSlot(value);
1314}
1315
1316void fx_Generator(txMachine* the)
1317{

Calls 4

fxLastPropertyFunction · 0.85
fxNewObjectInstanceFunction · 0.85
fxNextSlotPropertyFunction · 0.85
fxNextBooleanPropertyFunction · 0.85

Tested by

no test coverage detected