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

Function fxToNumericInteger

xs/sources/xsRun.c:4959–4967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4957}
4958
4959txBoolean fxToNumericInteger(txMachine* the, txSlot* theSlot)
4960{
4961 if (theSlot->kind == XS_REFERENCE_KIND)
4962 fxToPrimitive(the, theSlot, XS_NUMBER_HINT);
4963 if ((theSlot->kind == XS_BIGINT_KIND) || (theSlot->kind == XS_BIGINT_X_KIND))
4964 return 0;
4965 fxToInteger(the, theSlot);
4966 return 1;
4967}
4968
4969txBoolean fxToNumericIntegerUnary(txMachine* the, txSlot* a, txBigIntUnary op)
4970{

Callers 2

fxToNumericIntegerUnaryFunction · 0.85
fxToNumericIntegerBinaryFunction · 0.85

Calls 2

fxToPrimitiveFunction · 0.85
fxToIntegerFunction · 0.85

Tested by

no test coverage detected