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

Function fxCheckWeakSetValue

xs/sources/xsMapSet.c:1576–1585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1574}
1575
1576txSlot* fxCheckWeakSetValue(txMachine* the, txBoolean mutable)
1577{
1578 if (mxArgc > 0) {
1579 txSlot* slot = fxCanBeHeldWeakly(the, mxArgv(0));
1580 if (slot && mutable && (slot->flag & XS_MARK_FLAG))
1581 mxTypeError("value: read-only");
1582 return slot;
1583 }
1584 return C_NULL;
1585}
1586
1587txSlot* fxNewWeakSetInstance(txMachine* the)
1588{

Callers 3

fx_WeakSet_prototype_addFunction · 0.85
fx_WeakSet_prototype_hasFunction · 0.85

Calls 1

fxCanBeHeldWeaklyFunction · 0.85

Tested by

no test coverage detected