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

Function fxSetHostFunctionProperty

xs/sources/xsLockdown.c:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#include "xsScript.h"
40
41void fxSetHostFunctionProperty(txMachine* the, txSlot* property, txCallback call, txInteger length, txID id)
42{
43 txSlot* home = the->stack;
44 txSlot* function = fxNewHostFunction(the, call, length, id, XS_NO_ID);
45 txSlot* slot = mxFunctionInstanceHome(function);
46 slot->value.home.object = home->value.reference;
47 property->kind = the->stack->kind;
48 property->value = the->stack->value;
49 mxPop();
50}
51
52static void fx_lockdown_aux(txMachine* the, txInteger length, txSlot* prototype, txSlot* slot)
53{

Callers 1

fx_lockdownFunction · 0.70

Calls 1

fxNewHostFunctionFunction · 0.85

Tested by

no test coverage detected