-
Notifications
You must be signed in to change notification settings - Fork 308
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
Spike: Barretenberg ASSERT
should not be ignored in wasm, or workaround
#308
Labels
T-bug
Type: Bug. Something is broken.
Comments
iAmMichaelConnor
changed the title
Barretenberg
Spike: Barretenberg Apr 25, 2023
ASSERT
should not be ignored in wasm, or workaroundASSERT
should not be ignored in wasm, or workaround
This is bad, but I guess if we want runtime failures we should use throw_or_abort? I guess they are turned off for speed |
ludamad
pushed a commit
that referenced
this issue
Jul 14, 2023
* Add debugging CMake preset & update code-workspace --------- Co-authored-by: Blaine Bublitz <[email protected]>
Was this resolved with |
@iAmMichaelConnor I don't think so. I think that this ticket is for real assertions in barretenberg. Maybe we could stop using real asserts in barretenberg and instead implement something similar? |
codygunton
added a commit
that referenced
this issue
Jan 23, 2024
* Add debugging CMake preset & update code-workspace --------- Co-authored-by: Blaine Bublitz <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asserts/exceptions don't work in wasm by default. This means that bberg functions (stdlib etc) with assertions that SHOULD FAIL, just skip the assertion when running in a wasm environment. This is bad and means that in production assertions will just be skipped!
We need to determine if it's possible/worth it to enable exceptions/asserts in wasm (performance issues?) or some other way to work around this (similar to
DummyComposer
)?The text was updated successfully, but these errors were encountered: