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

Function fxModuleGetOwnProperty

xs/sources/xsModule.c:2683–2695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2681}
2682
2683txBoolean fxModuleGetOwnProperty(txMachine* the, txSlot* instance, txID id, txIndex index, txSlot* slot)
2684{
2685 txSlot* property = fxModuleFindProperty(the, instance, id, index);
2686 if (property) {
2687 slot->flag = (id == mxID(_Symbol_toStringTag)) ? property->flag : XS_DONT_DELETE_FLAG;
2688 slot->kind = property->kind;
2689 slot->value = property->value;
2690 return 1;
2691 }
2692 slot->flag = XS_NO_FLAG;
2693 slot->kind = XS_UNDEFINED_KIND;
2694 return 0;
2695}
2696
2697txSlot* fxModuleGetProperty(txMachine* the, txSlot* instance, txID id, txIndex index, txFlag flag)
2698{

Callers

nothing calls this directly

Calls 1

fxModuleFindPropertyFunction · 0.85

Tested by

no test coverage detected