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

avoid conflicting with strict mode. fix #152 #159

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading