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

Function fxRunInstantiate

xs/sources/xsRun.c:4714–4728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4712}
4713
4714void fxRunInstantiate(txMachine* the)
4715{
4716 if (the->stack->kind == XS_NULL_KIND) {
4717 mxPop();
4718 fxNewInstance(the);
4719 }
4720 else if (the->stack->kind == XS_REFERENCE_KIND) {
4721 fxNewHostInstance(the);
4722 }
4723 else {
4724 mxPop();
4725 mxPush(mxObjectPrototype);
4726 fxNewObjectInstance(the);
4727 }
4728}
4729
4730void fxRunProxy(txMachine* the, txSlot* instance)
4731{

Callers 1

xsRun.cFile · 0.85

Calls 3

fxNewInstanceFunction · 0.85
fxNewHostInstanceFunction · 0.85
fxNewObjectInstanceFunction · 0.85

Tested by

no test coverage detected