Debug Library
Returns the safeenv flag.
debug.getsafeenv(object: function | table | thread)
Also available as debug.isuntouched
debug.isuntouched