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

Function fxRunDefine

xs/sources/xsRun.c:4541–4554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4539}
4540
4541txBoolean fxRunDefine(txMachine* the, txSlot* instance, txSlot* check, txID id, txIndex index, txSlot* slot, txFlag mask)
4542{
4543 txBoolean result;
4544 if (check) {
4545 result = gxDefaults.definePrivateProperty(the, instance, check, id, slot, mask);
4546 }
4547 else {
4548 fxBeginHost(the);
4549 mxCheck(the, instance->kind == XS_INSTANCE_KIND);
4550 result = mxBehaviorDefineOwnProperty(the, instance, id, index, slot, mask);
4551 fxEndHost(the);
4552 }
4553 return result;
4554}
4555
4556
4557txBoolean fxRunDelete(txMachine* the, txSlot* instance, txID id, txIndex index)

Callers 1

fxRunIDFunction · 0.85

Calls 2

fxBeginHostFunction · 0.85
fxEndHostFunction · 0.85

Tested by

no test coverage detected