Open jjvbsag opened 1 year ago
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
Thanks.
Can you provide a Pull Request and I'll merge it.
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