Skip to content
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

strict mode incompatibility #64

Open
tsafin opened this issue Jul 8, 2022 · 0 comments
Open

strict mode incompatibility #64

tsafin opened this issue Jul 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tsafin
Copy link

tsafin commented Jul 8, 2022

Most of a time I run Tarantool (LuaJIT flavour) in strict mode as it's enabled by default in Debug mode. This makes lldebugger.lua to generate very vague error messages, like:

LuajitError: .../debug/local-lua-debugger-vscode/debugger/lldebugger.lua:1922: variable 'lldebugger' is not declared
fatal error, exiting the event loop

That's due to access to undefined global at

_G.lldebugger = _G.lldebugger || ____exports;

Such access to _G should probably be wrapped in rawget/rawset to workaround strict mode messages here.

@tomblind tomblind added the bug Something isn't working label Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants