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

Function fx_deepEqual

modules/base/deepEqual/deepEqual.c:104–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102};
103
104void fx_deepEqual(txMachine* the)
105{
106 txSlot* limit = the->stack;
107 txBoolean strict = 0;
108 if (mxArgc > 0)
109 mxPushSlot(mxArgv(0));
110 else
111 mxPushUndefined();
112 if (mxArgc > 1)
113 mxPushSlot(mxArgv(1));
114 else
115 mxPushUndefined();
116 if (mxArgc > 2) {
117 mxPushSlot(mxArgv(2));
118 mxGetID(fxID(the, "strict"));
119 strict = fxToBoolean(the, the->stack);
120 mxPop();
121 }
122 mxResult->value.boolean = fx_deepEqualSlots(the, limit, strict);
123 mxResult->kind = XS_BOOLEAN_KIND;
124}
125
126txBoolean fx_deepEqualEntries(txMachine* the, txSlot* limit, txBoolean strict, txBoolean paired)
127{

Callers

nothing calls this directly

Calls 3

fxIDFunction · 0.85
fxToBooleanFunction · 0.85
fx_deepEqualSlotsFunction · 0.85

Tested by

no test coverage detected