allegory-software / allegory-sdk

:candy: Self-contained cross-platform programming environment for developing web-based database-driven business apps in LuaJIT and JavaScript
MIT License
79 stars 6 forks source link

require glue will get error #6

Closed ChrisCatCP closed 1 year ago

ChrisCatCP commented 1 year ago

branch: dev

glue.lua:1728: variable 'Error' is not declared

this is my patch ,I don't know if this is correct

glue.lua
@@ -1838,7 +1838,7 @@ _G.protect = protect

 --base error class that all error types inherit from.

-Error = errortype()
+Error = {}
capr commented 1 year ago

If you use strict.lua you're in for a lot of fixin'... I read globals that might not be defined in a few places.

ChrisCatCP commented 1 year ago

okay, i ll take care of it

capr commented 1 year ago

Ok, closing, feel free to reopen if there's more I can help you with. If strict.lua is important to you I might consider fixing those places where undefined globals are accessed... so far I didn't need it.