mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Implement safe require
This commit is contained in:
parent
78293404c7
commit
7273b664ae
9 changed files with 165 additions and 20 deletions
|
@ -246,3 +246,9 @@ else
|
|||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local t = {}
|
||||
unittests.register("test_mod_require", function()
|
||||
assert(require("unittests") == t)
|
||||
end)
|
||||
return t
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue