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

Function fx_Array_fromAsync_onRejected

xs/sources/xsArray.c:1507–1523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1505}
1506
1507void fx_Array_fromAsync_onRejected(txMachine* the)
1508{
1509 txSlot* slot = mxFunctionInstanceHome(mxFunction->value.reference);
1510 txSlot* closure = slot->value.home.object;
1511 txSlot* resolveFunction = closure->next;
1512 txSlot* rejectFunction = resolveFunction->next;
1513 txSlot* onIteratedFunction = rejectFunction->next;
1514 txSlot* onRejectedFunction = onIteratedFunction->next;
1515 txSlot* result = onRejectedFunction->next;
1516 txSlot* index = result->next;
1517 txSlot* iterator = index->next;
1518
1519 fxIteratorReturn(the, iterator, 1);
1520 mxException.kind = mxArgv(0)->kind;
1521 mxException.value = mxArgv(0)->value;
1522 fxThrow(the, NULL, 0);
1523}
1524
1525void fx_Array_isArray(txMachine* the)
1526{

Callers

nothing calls this directly

Calls 2

fxIteratorReturnFunction · 0.85
fxThrowFunction · 0.85

Tested by

no test coverage detected