[printer] [bug]
grayflow opened this issue ยท 2 comments
grayflow commented
code = 'if (e.indexTheme) var c = e.theme + (e.level + 10 * e.indexTheme) + ")"; else c = e.theme + e.level + ")";'
'if (e.indexTheme) var c = e.theme + (e.level + 10 * e.indexTheme) + ")"; else c = e.theme + e.level + ")";'
> console.log(putout(code).code)
if (e.indexTheme)
var c = e.theme + (e.level + 10 * e.indexTheme) + ')'else
c = e.theme + e.level + ')';
> eval(putout(code).code)
Uncaught SyntaxError: Unexpected token 'else'
coderaiser commented
Thanks! Just, fixed ๐! Please re-install ๐Putout. Is it works for you?
Could you please tell me why you use such code?
if (a)
var b;
coderaiser commented
Closed due to a long time of inactivity ๐