Fix the fallback assert() function.
This commit is contained in:
parent
88f1030e01
commit
10096db4f3
|
@ -23,7 +23,7 @@ if not rawequal then function rawequal(a, b) return a == b end end
|
||||||
if not assert then
|
if not assert then
|
||||||
function assert(value, ...)
|
function assert(value, ...)
|
||||||
if value then
|
if value then
|
||||||
return value
|
return value, ...
|
||||||
else
|
else
|
||||||
error(... or 'assertion failed!', 2)
|
error(... or 'assertion failed!', 2)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue