We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Luaunit does not run with strict
Simple test with plain lua5.1
require"strict" local lu=require"luaunit.luaunit"
returns lua5.1: ./luaunit.luaunit.lua:21: variable 'jit' is not declared
lua5.1: ./luaunit.luaunit.lua:21: variable 'jit' is not declared
Test with luajit (same simple test) returns ./luaunit/luaunit.lua:2069: variable 'EXPORT_ASSERT_TO_GLOBALS' is not declared
./luaunit/luaunit.lua:2069: variable 'EXPORT_ASSERT_TO_GLOBALS' is not declared
The text was updated successfully, but these errors were encountered:
I changed line 21 like this:
M._LUAVERSION = rawget(_ENV, 'jit') and jit.version or _VERSION
and line 66:
-- EXPORT_ASSERT_TO_GLOBALS = true local EXPORT_ASSERT_TO_GLOBALS = rawget(_ENV, 'EXPORT_ASSERT_TO_GLOBALS') and EXPORT_ASSERT_TO_GLOBALS
Sorry, something went wrong.
Thanks.
Can you provide a Pull Request and I'll merge it.
avoid conflicting with strict mode. fix bluebird75#152
1c21b57
No branches or pull requests
Luaunit does not run with strict
Simple test with plain lua5.1
returns
lua5.1: ./luaunit.luaunit.lua:21: variable 'jit' is not declared
Test with luajit (same simple test) returns
./luaunit/luaunit.lua:2069: variable 'EXPORT_ASSERT_TO_GLOBALS' is not declared
The text was updated successfully, but these errors were encountered: