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

Function fxCheckFunctionInstance

xs/sources/xsFunction.c:92–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92txSlot* fxCheckFunctionInstance(txMachine* the, txSlot* slot)
93{
94 if (slot->kind == XS_REFERENCE_KIND) {
95 slot = slot->value.reference;
96 if (fxIsFunction(the, slot))
97 return slot;
98 }
99 mxTypeError("this: not a Function instance");
100 return C_NULL;
101}
102
103txBoolean fxIsCallable(txMachine* the, txSlot* slot)
104{

Callers 1

Calls 1

fxIsFunctionFunction · 0.85

Tested by

no test coverage detected