Commit b9fc088
authored
fix: update wasm-bindgen to 0.2.109 for CSP compatibility (#367)
wasm-bindgen 0.2.109 removed the `new Function("return this")` fallback
for getting the global object (PR wasm-bindgen/wasm-bindgen#4910),
which required `'unsafe-eval'` in Content-Security-Policy `script-src`.
With this update, applications using @dimforge/rapier3d-compat can use
the more restrictive `'wasm-unsafe-eval'` instead of `'unsafe-eval'`,
blocking JavaScript eval() while still allowing WebAssembly compilation.
Refs: #3661 parent 6c7e720 commit b9fc088
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments