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

Function fxToNumericNumber

xs/sources/xsRun.c:4996–5004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4994}
4995
4996txBoolean fxToNumericNumber(txMachine* the, txSlot* theSlot)
4997{
4998 if (theSlot->kind == XS_REFERENCE_KIND)
4999 fxToPrimitive(the, theSlot, XS_NUMBER_HINT);
5000 if ((theSlot->kind == XS_BIGINT_KIND) || (theSlot->kind == XS_BIGINT_X_KIND))
5001 return 0;
5002 fxToNumber(the, theSlot);
5003 return 1;
5004}
5005
5006txBoolean fxToNumericNumberUnary(txMachine* the, txSlot* a, txBigIntUnary op)
5007{

Callers 3

fxToNumericNumberUnaryFunction · 0.85
fxToNumericNumberBinaryFunction · 0.85

Calls 2

fxToPrimitiveFunction · 0.85
fxToNumberFunction · 0.85

Tested by

no test coverage detected