emscripten-core / emscripten-core/emscripten
DYNAMIC_EXECUTION run on CSP setting "wasm-unsafe-eval"
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
I want to run my project on environment what setting CSP block 'wasm-unsafe-eval',
and I can't set DYNAMIC_EXECUTION = 0 in my case.
so I refer to the [PR](https://github.com/emscripten-core/emscripten/pull/17296) to modify "emscripten” builded JS code.
but the "craftInvokerFunction" was still use eval(new Function).
and I just modify craftInvokerFunction refer to "DYNAMIC_EXECUTION == 0".
In my case it working fine.
(it can run on "wasm-unsafe-eval")
I don't think it's a good solution. so I need some suggest to deal with the CSP "wasm-unsafe-eval" block question.
even it can run on CSP block 'unsafe-eval'.
thank you so mush~
Contributor guide
Assessment
This issue has not been assessed yet.