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

Function fxTypedArrayDeleteProperty

xs/sources/xsDataView.c:1289–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1287}
1288
1289txBoolean fxTypedArrayDeleteProperty(txMachine* the, txSlot* instance, txID id, txIndex index)
1290{
1291 if ((!id) || fxIsCanonicalIndex(the, id)) {
1292 txSlot* dispatch = instance->next;
1293 txSlot* view = dispatch->next;
1294 txSlot* buffer = view->next;
1295 txU2 shift = dispatch->value.typedArray.dispatch->shift;
1296 txIndex length = fxGetDataViewSize(the, view, buffer) >> shift;
1297 return ((!id) && (index < length)) ? 0 : 1;
1298 }
1299 return fxOrdinaryDeleteProperty(the, instance, id, index);
1300}
1301
1302txBoolean fxTypedArrayGetOwnProperty(txMachine* the, txSlot* instance, txID id, txIndex index, txSlot* slot)
1303{

Callers

nothing calls this directly

Calls 3

fxIsCanonicalIndexFunction · 0.85
fxGetDataViewSizeFunction · 0.85
fxOrdinaryDeletePropertyFunction · 0.85

Tested by

no test coverage detected