MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_debug_bigint

Function gjs_debug_bigint

gjs/jsapi-util-string.cpp:453–463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453std::string gjs_debug_bigint(JS::BigInt* bi) {
454 // technically this prints the value % INT64_MAX, cast into an int64_t if
455 // the value is negative, otherwise cast into uint64_t
456 std::ostringstream out;
457 if (JS::BigIntIsNegative(bi))
458 out << JS::ToBigInt64(bi);
459 else
460 out << JS::ToBigUint64(bi);
461 out << "n (modulo 2^64)";
462 return out.str();
463}
464
465enum Quotes : uint8_t {
466 DoubleQuotes,

Callers 5

bigint_is_out_of_rangeFunction · 0.85
gjs_debug_valueFunction · 0.85

Calls

no outgoing calls