github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/lib/base/lua/disableio.quotas.lua (about)

     1  -- When IO is disabled, loadfile and dofile return errors
     2  
     3  runtime.callcontext({flags="iosafe"}, function () 
     4      print(pcall(loadfile, "foo"))
     5      --> ~false\t.*: missing flags: iosafe
     6  
     7      print(pcall(dofile, "bar"))
     8      --> ~false\t.*: missing flags: iosafe
     9  end)