developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.67k stars 170 forks source link

Add failing test for syntax error #188

Open j-f1 opened 3 years ago

j-f1 commented 3 years ago

I saw this issue occur in real life, and noticed that the error message is very unclear:

TypeError: unknown: (intermediate value)(intermediate value).push is not a function

I’m not sure how this should be fixed (re-throwing a clearer error or turning this into a valid parse perhaps?) but I wanted to raise it anyway.