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

Function fxNextHostFunctionProperty

xs/sources/xsProperty.c:77–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77txSlot* fxNextHostFunctionProperty(txMachine* the, txSlot* property, txCallback call, txInteger length, txID id, txFlag flag)
78{
79 txSlot *function, *home = the->stack, *slot;
80 function = fxNewHostFunction(the, call, length, id, XS_NO_ID);
81 slot = mxFunctionInstanceHome(function);
82 slot->value.home.object = home->value.reference;
83 property = property->next = fxNewSlot(the);
84 property->flag = flag;
85 property->ID = id;
86 property->kind = the->stack->kind;
87 property->value = the->stack->value;
88 mxPop();
89 return property;
90}
91#endif
92
93txSlot* fxNextUndefinedProperty(txMachine* the, txSlot* property, txID id, txFlag flag)

Callers 15

fxBuildModuleFunction · 0.70
fxBuildMapSetFunction · 0.70
fxBuildMathFunction · 0.70
fxBuildGeneratorFunction · 0.70
fxBuildSymbolFunction · 0.70
fxBuildBooleanFunction · 0.70
fxBuildFunctionFunction · 0.70
fxBuildErrorFunction · 0.70
fxBuildBigIntFunction · 0.70
fxBuildRegExpFunction · 0.70
fxBuildDateFunction · 0.70
fxBuildArrayFunction · 0.70

Calls 2

fxNewHostFunctionFunction · 0.85
fxNewSlotFunction · 0.85

Tested by

no test coverage detected