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

Function fxCheckTypedArrayInstance

xs/sources/xsDataView.c:1453–1462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1451}
1452
1453txSlot* fxCheckTypedArrayInstance(txMachine* the, txSlot* slot)
1454{
1455 if (slot->kind == XS_REFERENCE_KIND) {
1456 txSlot* instance = slot->value.reference;
1457 if (((slot = instance->next)) && (slot->flag & XS_INTERNAL_FLAG) && (slot->kind == XS_TYPED_ARRAY_KIND))
1458 return instance;
1459 }
1460 mxTypeError("this: not a TypedArray instance");
1461 return C_NULL;
1462}
1463
1464txSlot* fxConstructTypedArray(txMachine* the)
1465{

Calls

no outgoing calls

Tested by

no test coverage detected