Fix the fallback assert() function.

This commit is contained in:
luk3yx 2019-11-05 13:45:33 +13:00
parent 88f1030e01
commit 10096db4f3
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ if not rawequal then function rawequal(a, b) return a == b end end
if not assert then
function assert(value, ...)
if value then
return value
return value, ...
else
error(... or 'assertion failed!', 2)
end