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

Function fxIsCallable

xs/sources/xsFunction.c:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103txBoolean fxIsCallable(txMachine* the, txSlot* slot)
104{
105 if (slot->kind == XS_REFERENCE_KIND)
106 return fxIsFunction(the, slot->value.reference);
107#if mxHostFunctionPrimitive
108 if (slot->kind == XS_HOST_FUNCTION_KIND)
109 return 1;
110#endif
111 return 0;
112}
113
114txBoolean fxIsFunction(txMachine* the, txSlot* instance)
115{

Callers 15

fx_CompartmentFunction · 0.85
fx_ModuleStuffFunction · 0.85
fx_MapFunction · 0.85
fxCheckSetRecordFunction · 0.85
fx_SetFunction · 0.85
fx_WeakMapFunction · 0.85
fx_WeakSetFunction · 0.85
fx_FinalizationRegistryFunction · 0.85
fxGroupByFunction · 0.85
fxRunIDFunction · 0.85

Calls 1

fxIsFunctionFunction · 0.85

Tested by

no test coverage detected