socketsupply / union-app-studio

Like Codepen, but for native apps!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comment as last line throws error

colinhowells opened this issue · comments

Loving this, thanks for making it. I can see it becoming really useful as I learn and try things out!

If a comment's the last line of a script, an error's thrown:

var something = 'yo';
console.log(something);
//this being on the last line results in `SyntaxError: Unexpected end of input`

using 0.0.6

Thanks for the kind words! But also thanks for the heads up, I never noticed this :)

Oh, also, the fix is in master but I will roll it into the next release after a few other fixes.