MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / to64

Function to64

src/parseTools.mjs:1050–1053  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1048// code (since pointers are presented as Number in JS and BigInt in wasm we need
1049// this conversion before passing them).
1050function to64(x) {
1051 if (!MEMORY64) return x;
1052 return castToBigInt(x);
1053}
1054
1055function asyncIf(condition) {
1056 return condition ? 'async ' : '';

Callers 3

libdylink.jsFile · 0.50
libccall.jsFile · 0.50

Calls 1

castToBigIntFunction · 0.85

Tested by

no test coverage detected