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

Function fxModuleGetPropertyValue

xs/sources/xsModule.c:2728–2738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2726}
2727
2728txBoolean fxModuleGetPropertyValue(txMachine* the, txSlot* instance, txID id, txIndex index, txSlot* receiver, txSlot* value)
2729{
2730 txSlot* property = fxModuleFindProperty(the, instance, id, index);
2731 if (property) {
2732 value->kind = property->kind;
2733 value->value = property->value;
2734 return 1;
2735 }
2736 value->kind = XS_UNDEFINED_KIND;
2737 return 0;
2738}
2739
2740txBoolean fxModuleGetPrototype(txMachine* the, txSlot* instance, txSlot* result)
2741{

Callers

nothing calls this directly

Calls 1

fxModuleFindPropertyFunction · 0.85

Tested by

no test coverage detected