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

Function _xsDefine

xs/sources/xsmc.c:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void _xsDefine(txMachine *the, txSlot *self, txID id, txSlot *v, txFlag attributes)
146{
147 mxOverflow(-2);
148 fxPush(*v);
149 fxPush(*self);
150 fxDefineID(the, id, attributes, attributes | XS_DONT_DELETE_FLAG | XS_DONT_ENUM_FLAG | XS_DONT_SET_FLAG);
151 mxPop();
152}
153
154void _xsDelete(txMachine *the, txSlot *self, txID id)
155{

Callers

nothing calls this directly

Calls 1

fxDefineIDFunction · 0.85

Tested by

no test coverage detected