Skip to content

Commit

Permalink
chore: harden args case
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Nov 7, 2023
1 parent 8b84b8e commit f14515c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function minify(
// uniform float foo, bar;
list ||
// fn (arg: type) -> void
tokens[i + 1]?.value === ':') &&
(tokens[i - 1]?.type === 'symbol' && tokens[i + 1]?.value === ':')) &&
// Skip shader externals when disabled
(mangleExternals || !storage)
) {
Expand Down

0 comments on commit f14515c

Please sign in to comment.