Skip to content

wasm wrapper: add DYNAMIC_EXECUTION=0 flag #984

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

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

Conversation

AlexXiong-dev
Copy link
Contributor

@AlexXiong-dev AlexXiong-dev commented Aug 4, 2025

To fix the CSP issue in discussions #977, need to add flag DYNAMIC_EXECUTION=0 when building the wasm binary.

Description: https://emscripten.org/docs/tools_reference/settings_reference.html#dynamic-execution

To fix CSP issue, need to add flag DYNAMIC_EXECUTION=0 during building the wasm binary.
More details in discussions zxing-cpp#977
@AlexXiong-dev
Copy link
Contributor Author

Please check if this impacts the current functions. If it does not, please review and merge it. Thank you.

@axxel
Copy link
Collaborator

axxel commented Aug 10, 2025

Looking at the documentation you provided, I have the following thoughts:

  • if that change strictly increases the usability, then we should surely apply it
  • since you seem to be able to run the code with that change, then none of the throwing functions are used
  • the document mentions a potential loss in performance, depending on how much this affects the library, this change would be unsuitable for the general use case
  • @Sec-ant what is your approach to this subject?

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