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

Function fxLinkNamespace

xs/sources/xsModule.c:955–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955void fxLinkNamespace(txMachine* the, txSlot* module, txSlot* transfer)
956{
957 txSlot* export = mxTransferClosure(transfer);
958 mxCheck(the, export->kind == XS_EXPORT_KIND);
959 export->value.export.closure = fxDuplicateSlot(the, module);
960 export->value.export.closure->ID = XS_NO_ID;
961}
962
963void fxLinkTransfer(txMachine* the, txSlot* module, txID importID, txSlot* transfer)
964{

Callers 2

fxLinkExportsFunction · 0.85
fxLinkLocalsFunction · 0.85

Calls 1

fxDuplicateSlotFunction · 0.85

Tested by

no test coverage detected