diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-03-07 21:10:31 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-09 13:53:10 -0700 |
| commit | 557f396f613a416e81116f85c080af8b976fe8cf (patch) | |
| tree | 8d3c5564d6bbefde4cd04f2dc670bc726ec0ef95 /test/behavior | |
| parent | b936fe0a5855872814c9f70f958363f64896217b (diff) | |
| download | zig-557f396f613a416e81116f85c080af8b976fe8cf.tar.gz zig-557f396f613a416e81116f85c080af8b976fe8cf.zip | |
wasm: Improve switch implementation
- Implement switching over booleans and pointers.
- Fix sparse-detection where the lowest value was never truly set
as it started at a non-zero number and the case was > 50.
- Fix indexing the jump table by ensuring it starts indexing from 0.
Diffstat (limited to 'test/behavior')
0 files changed, 0 insertions, 0 deletions
