(name)
| 998 | // JS API I64 param handling: if we have BigInt support, the ABI is simple, |
| 999 | // it is a BigInt. Otherwise, we legalize into pairs of i32s. |
| 1000 | export function defineI64Param(name) { |
| 1001 | if (WASM_BIGINT) { |
| 1002 | return name; |
| 1003 | } |
| 1004 | return `${name}_low, ${name}_high`; |
| 1005 | } |
| 1006 | |
| 1007 | export function receiveI64ParamAsI53(name, onError, handleErrors = true) { |
| 1008 | var errorHandler = handleErrors ? `if (isNaN(${name})) { return ${onError}; }` : ''; |
no outgoing calls
no test coverage detected