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

Function fxCreateTypedArraySpecies

xs/sources/xsDataView.c:1483–1492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481}
1482
1483void fxCreateTypedArraySpecies(txMachine* the)
1484{
1485 txSlot* instance = fxToInstance(the, mxThis);
1486 txSlot* dispatch = instance->next;
1487 txSlot* constructor = &the->stackIntrinsics[-1 - (txInteger)dispatch->value.typedArray.dispatch->constructorID];
1488 mxPushSlot(mxThis);
1489 mxGetID(mxID(_constructor));
1490 fxToSpeciesConstructor(the, constructor);
1491 mxNew();
1492}
1493
1494void fxReduceTypedArrayItem(txMachine* the, txSlot* function, txSlot* dispatch, txSlot* view, txSlot* data, txInteger index)
1495{

Calls 2

fxToInstanceFunction · 0.85
fxToSpeciesConstructorFunction · 0.85

Tested by

no test coverage detected