Rich-Harris / code-red

Experimental toolkit for writing x-to-JavaScript compilers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`await` has wrong precedence

Conduitry opened this issue · comments

From sveltejs/svelte#4267

cr.print(cr.x`await (a || b)`).code

returns

await a || b

which is incorrect, as await has a higher precedence than ||.