Auto strict mode based on optimization level

This commit is contained in:
Aaron Smith 2023-09-20 12:23:51 +01:00
parent 8b4210e66a
commit cc4b390d3d
5 changed files with 31 additions and 28 deletions

View file

@ -31,6 +31,8 @@ end
local NIL = nil :: any
vide.strict = false
TEST("graph", function()
local create_node = graph.create_node
local track = graph.track
@ -1644,6 +1646,8 @@ TEST("changed()", wrap_root(function()
end
end))
vide.strict = true
TEST("strict", wrap_root(function()
vide.strict = true