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

Function fxRunConstructor

xs/sources/xsRun.c:4525–4539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4523}
4524
4525void fxRunConstructor(txMachine* the)
4526{
4527 txSlot* target;
4528 txSlot* prototype;
4529 target = mxTarget;
4530 mxPushUndefined();
4531 prototype = the->stack;
4532 fxBeginHost(the);
4533 mxPushSlot(target);
4534 fxGetPrototypeFromConstructor(the, &mxObjectPrototype);
4535 *prototype = *the->stack;
4536 fxEndHost(the);
4537 fxNewHostInstance(the);
4538 mxPullSlot(mxThis);
4539}
4540
4541txBoolean fxRunDefine(txMachine* the, txSlot* instance, txSlot* check, txID id, txIndex index, txSlot* slot, txFlag mask)
4542{

Callers 3

ifFunction · 0.85
fxRunIDFunction · 0.85
fxRunBaseFunction · 0.85

Calls 4

fxBeginHostFunction · 0.85
fxEndHostFunction · 0.85
fxNewHostInstanceFunction · 0.85

Tested by

no test coverage detected