Closed ooflorent closed 1 year ago
This looks to be skipped since void
is not a valid keyword in WGSL and treated as an identifier. The behavior is still very wrong until I implement a proper AST (#14), but this should work with valid WGSL fn main() { var test: f32; }
.
I've harden surrounding cases in the latest release. Let me know if this was somehow missed.
The minifier is unable to identify some variables in WSGL.
The issue can already be observed by looking at the current snapshots where
output
is not mangled.Reproduction