From 5775954d7c0e68a62979a687c0fd51f713a47701 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 15:19:33 -0400 Subject: [PATCH] Capture fs locally before setting _ENV=nil in json.lua --- sys/modules/opus/json.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/modules/opus/json.lua b/sys/modules/opus/json.lua index 41d0e36..3811f2f 100644 --- a/sys/modules/opus/json.lua +++ b/sys/modules/opus/json.lua @@ -39,8 +39,8 @@ if register_global_module_table then _G[global_module_name] = json end --- this was incompatible because we use fs later ---local _ENV = nil -- blocking globals in Lua 5.2 +local fs = fs +local _ENV = nil -- blocking globals in Lua 5.2 pcall (function() -- Enable access to blocked metatables.