Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bakkot
Copy link
Contributor

@bakkot bakkot commented Apr 24, 2022

The default error handler calls exit, which makes the wasm API hang. So this PR makes the error handler for the wasm build do nothing, like in the Python API.

Also, in the second commit, separates out the fancy typescript wrapper from the emscripten artifact (and adds a new script which joins the two, for node consumers), so that a web build can link against the typescript wrapper without including the emscripten artifact, which needs to be served separately.

Fixes #5995, I believe. cc @ViRb3, can you try out this branch? See in particular the updated instructions in the readme, which should make it so you don't need the Module['mainScriptUrlOrBlob'] bit. I have a copy here built with this fork which seems to work correctly.

@NikolajBjorner NikolajBjorner merged commit 312e037 into Z3Prover:master Apr 24, 2022
@bakkot bakkot deleted the wasm-error-handler branch April 24, 2022 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

z3-wasm hangs browser on sat error

2 participants