Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always call console_error_panic_hook::set_once and remove ad-hoc uses of it #63

Open
wants to merge 1 commit into
base: v1
Choose a base branch
from

Conversation

L-as
Copy link
Contributor

@L-as L-as commented Jun 29, 2023

The WASM module now exports console_error_panic_hook_set_once which is an alias for console_error_panic_hook::set_once to be called from the JS side. It is always called when loading the module in the wrapper JS module.

@mitschabaude
Copy link
Collaborator

very nice! It would be good to have an accompanying snarkyjs PR so that we can see this working in CI

L-as added a commit to dcSpark/snarkyjs that referenced this pull request Jun 30, 2023
…es of it

The WASM module now exports `console_error_panic_hook_set_once` which is an alias
for `console_error_panic_hook::set_once` to be called from the JS side.
It is always called when loading the module in the wrapper JS module.
L-as added a commit to dcSpark/snarkyjs that referenced this pull request Jun 30, 2023
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.

2 participants