mherkender / lua.js

An ECMAscript framework to compile and run Lua code, allowing Lua to run in a browser or in Flash
http://blog.brokenfunction.com/
600 stars 73 forks source link

[[\]] -> "\": SyntaxError: unterminated string literal #36

Open olleharstedt opened 10 years ago

olleharstedt commented 10 years ago

As title says, [[\]] in Lua becomes "\" in JS.

Easily fixed with "\\" in Lua, Still...