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

Function fxNewTypedArrayInstance

xs/sources/xsDataView.c:1511–1525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511txSlot* fxNewTypedArrayInstance(txMachine* the, txTypeDispatch* dispatch, txTypeAtomics* atomics)
1512{
1513 txSlot* instance;
1514 txSlot* property;
1515 instance = fxNewObjectInstance(the);
1516 instance->flag |= XS_EXOTIC_FLAG;
1517 property = fxNextTypeDispatchProperty(the, instance, dispatch, atomics, XS_TYPED_ARRAY_BEHAVIOR, XS_INTERNAL_FLAG);
1518 property = property->next = fxNewSlot(the);
1519 property->flag = XS_INTERNAL_FLAG;
1520 property->kind = XS_DATA_VIEW_KIND;
1521 property->value.dataView.offset = 0;
1522 property->value.dataView.size = 0;
1523 property = fxNextNullProperty(the, property, XS_NO_ID, XS_INTERNAL_FLAG);
1524 return instance;
1525}
1526
1527void fx_TypedArray(txMachine* the)
1528{

Callers 1

fxConstructTypedArrayFunction · 0.85

Calls 4

fxNewObjectInstanceFunction · 0.85
fxNewSlotFunction · 0.85
fxNextNullPropertyFunction · 0.85

Tested by

no test coverage detected