Commit 6b851ed
authored
StubUnsupportedJSOps: Remove global exports (#8436)
This pass removes things we can't handle in wasm2js, and globals are
such a feature: wasm2js emits them in a partial way (it emits simple
fake objects, which are not actually WebAssembly.Global instances, and can
mix up the fuzzer).
Note that this pass is only used in the fuzzer - it is not part of
wasm2js's normal pipeline, so this does not affect any production workload. Also,
this PR makes the pass non-parallel (it is just easier), but that also is not
a problem for this reason.
Doing this will allow fuzzing more global things (this will avoid
breakage in wasm2js).1 parent d1cd2cf commit 6b851ed
File tree
2 files changed
+45
-5
lines changed- src/passes
- test/lit/passes
2 files changed
+45
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | 340 | | |
346 | 341 | | |
347 | 342 | | |
| |||
386 | 381 | | |
387 | 382 | | |
388 | 383 | | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
389 | 399 | | |
390 | 400 | | |
391 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments