Apparently some optimization happens for the release build, because when executed it fails with:
dotnet.js:14 missing function: glfwSetErrorCallback
_glfwSetErrorCallback @ dotnet.js:14
dotnet.js:14 Aborted(-1)
abort @ dotnet.js:14
dotnet.js:5 RuntimeError: Aborted(-1). Build with -sASSERTIONS for more info.
at abort (:63048/dotnet.js:14:13320)
at _glfwSetErrorCallback (:63048/dotnet.js:14:211801)
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
at :63048/dotnet.wasm
Ce @ dotnet.js:5
localhost/:1 Uncaught RuntimeError: Aborted(-1). Build with -sASSERTIONS for more info.
at abort (dotnet.js:14:13320)
at _glfwSetErrorCallback (dotnet.js:14:211801)
at dotnet.wasm:0x2dd9b
at dotnet.wasm:0x829c3
at dotnet.wasm:0x81e8e
at dotnet.wasm:0x7359a
at dotnet.wasm:0x7244c
at dotnet.wasm:0x1f9fac
at dotnet.wasm:0xddc75
at dotnet.wasm:0xddbeb
Apparently some optimization happens for the release build, because when executed it fails with: