Skip to content

Conversation

@viktorking7
Copy link

Description

  • Replaced an implicit global (a) with a scoped const to prevent leaks and side effects.
  • Rethrow original error (throw err) to preserve stack traces during WASM compilation failures.

Why

  • Avoids hard-to-debug behavior from globals in non-strict JS.
  • Keeps accurate stack information for troubleshooting.

Scope

  • File: code_producers/src/wasm_elements/common/witness_calculator.js
  • No functional changes to public API; behavior is safer and more debuggable.

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.

1 participant