diff --git a/pages/getting-started/5-security.mdx b/pages/getting-started/5-security.mdx index ca52bfe..f7a3ab0 100644 --- a/pages/getting-started/5-security.mdx +++ b/pages/getting-started/5-security.mdx @@ -105,7 +105,11 @@ local function discoverAndReadScript(filePath: string): string end local function sandboxGetfenv(): {} - return table.freeze(SANDBOXED_ENV) + if table.isfrozen(SANDBOXED_ENV) then + return SANDBOXED_ENV.environment + end + + return {} end local function sandboxSetfenv(env: {}): never