Skip to content

Commit

Permalink
avoid conflicting with strict mode. fix #152
Browse files Browse the repository at this point in the history
  • Loading branch information
badiku authored Jan 31, 2024
1 parent 86f6822 commit 86e1ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luaunit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ M.VERSION='3.4'
M._VERSION=M.VERSION -- For LuaUnit v2 compatibility

-- a version which distinguish between regular Lua and LuaJit
M._LUAVERSION = (jit and jit.version) or _VERSION
M._LUAVERSION = (pcall(function() return(jit.version)end)) and jit.version or _VERSION

--[[ Some people like assertEquals( actual, expected ) and some people prefer
assertEquals( expected, actual ).
Expand Down Expand Up @@ -63,7 +63,7 @@ M.FORCE_DEEP_ANALYSIS = true
M.DISABLE_DEEP_ANALYSIS = false

-- set EXPORT_ASSERT_TO_GLOBALS to have all asserts visible as global values
-- EXPORT_ASSERT_TO_GLOBALS = true
local EXPORT_ASSERT_TO_GLOBALS = (pcall(function() return(EXPORT_ASSERT_TO_GLOBALS)end)) and EXPORT_ASSERT_TO_GLOBALS

-- we need to keep a copy of the script args before it is overriden
local cmdline_argv = rawget(_G, "arg")
Expand Down

0 comments on commit 86e1ec3

Please sign in to comment.