Open teknixstuff opened 2 years ago
I have fixed the issue in my particular game by replacing all the usages of goto with an alternative.
I don't think the issue should be closed however, as goto is an important part of lua syntax and should work.
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.
The affected code is:
On the normal windows 64-bit love.exe from https://love2d.org the game loads up and looks like this: The full love file can be found here I am using compatibility mode with love.js if that makes any difference