-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
goto statements cause a syntax error in love.js #77
Comments
The |
Apparently LuaJIT supports |
I have also noticed this issue. According to this stackoverflow thread, the |
This is a repeat of #62 As pointed out above, goto was only introduced in Lua 5.2. Luajit adopted the feature. Since there is no wasm support for luajit, the web target relies on Lua 5.1. There is no fix, short of getting luajit to target wasm. When using the web port make sure to stick to Lua 5.1 syntax / semantics. |
Error: Syntax error: main.lua:362: '=' expected near 'continue'
is thrown for this valid Lua code
goto continue
(as Lua lacks a 'continue' statement, goto is typically the next best thing)
The text was updated successfully, but these errors were encountered: