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

Add std defs for LuaJIT #149

Open
nlebedenco opened this issue Jan 29, 2023 · 0 comments
Open

Add std defs for LuaJIT #149

nlebedenco opened this issue Jan 29, 2023 · 0 comments

Comments

@nlebedenco
Copy link

What happens?

There are no def files for LuaJIT.

What were you expecting to happen?

Be able to select a LuaJIT profile

Any comments

Although LuaJIT is mostly compliant with Lua 5.1 there are particular differences as described in the docs here and which Luanalysis marks as errors. In particular there are new modules (bit, jit, ffi), new classes (string.buffer) and new functions (table.new and table.clear). And some global functions have small differences (tostring, tonumber, xpcall, string.dump, math.random, etc) plus some extensions from 5.3 (table.move, coroutine.isyieldable, ...) . There is also the option to enable some extensions from 5.2 (depending on build options) which probably means we might need two profiles one for strict 5.1 (e.g. LuaJIT5.1) and another for 5.1/2 (e.g. LuaJIT5.1+) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant