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

Function fxTypedArrayOwnKeys

xs/sources/xsDataView.c:1365–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365void fxTypedArrayOwnKeys(txMachine* the, txSlot* instance, txFlag flag, txSlot* keys)
1366{
1367 if (flag & XS_EACH_NAME_FLAG) {
1368 txSlot* dispatch = instance->next;
1369 txSlot* view = dispatch->next;
1370 txSlot* buffer = view->next;
1371 txU2 shift = dispatch->value.typedArray.dispatch->shift;
1372 txIndex length = fxGetDataViewSize(the, view, buffer) >> shift;
1373 if (length) {
1374 txIndex index;
1375 for (index = 0; index < length; index++)
1376 keys = fxQueueKey(the, 0, index, keys);
1377 }
1378 }
1379 fxOrdinaryOwnKeys(the, instance, flag, keys);
1380}
1381
1382txBoolean fxTypedArrayPreventExtensions(txMachine* the, txSlot* instance)
1383{

Callers

nothing calls this directly

Calls 3

fxGetDataViewSizeFunction · 0.85
fxQueueKeyFunction · 0.85
fxOrdinaryOwnKeysFunction · 0.85

Tested by

no test coverage detected