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

Function fxIsScopableSlot

xs/sources/xsRun.c:4872–4889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4870}
4871
4872txBoolean fxIsScopableSlot(txMachine* the, txSlot* instance, txID id)
4873{
4874 txBoolean result;
4875 fxBeginHost(the);
4876 mxPushReference(instance);
4877 result = mxHasID(id);
4878 if (result) {
4879 mxPushReference(instance);
4880 mxGetID(mxID(_Symbol_unscopables));
4881 if (mxIsReference(the->stack)) {
4882 mxGetID(id);
4883 result = fxToBoolean(the, the->stack) ? 0 : 1;
4884 }
4885 mxPop();
4886 }
4887 fxEndHost(the);
4888 return result;
4889}
4890
4891void fxRemapIDs(txMachine* the, txByte* codeBuffer, txSize codeSize, txID* theIDs)
4892{

Callers 1

xsRun.cFile · 0.85

Calls 3

fxBeginHostFunction · 0.85
fxToBooleanFunction · 0.85
fxEndHostFunction · 0.85

Tested by

no test coverage detected