3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-26 11:56:21 +00:00

feat: allow custom wasm load paths for js init

Agent-Logs-Url: https://github.com/Z3Prover/z3/sessions/3070f139-a412-4e40-8446-bd569f9ffa55

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-25 16:45:59 +00:00 committed by GitHub
parent d19585bd03
commit a30faacba1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 105 additions and 8 deletions

View file

@ -444,8 +444,8 @@ ${Object.entries(primitiveTypes)
.map(e => `type ${e[0]} = ${e[1]};`)
.join('\n')}
export async function init(initModule: any) {
let Mod = await initModule();
export async function init(initModule: any, moduleOverrides: Record<string, unknown> = {}) {
let Mod = await initModule(moduleOverrides);
// this works for both signed and unsigned, because JS will wrap for you when constructing the Uint32Array
function intArrayToByteArr(ints: number[]) {