Skip to content

Commit

Permalink
Weak References & GC Awareness
Browse files Browse the repository at this point in the history
  • Loading branch information
SnorlaxAssist committed Mar 27, 2024
1 parent 97636a9 commit 4b76cd4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ local type = type
local pcall = pcall
local error = error
local tonumber = tonumber
local assert =assert
local assert = assert
local setmetatable = setmetatable

local string_format = string.format

Expand Down Expand Up @@ -510,7 +511,7 @@ local function luau_load(module, env, luau_settings)

local function luau_wrapclosure(module, proto, upvals)
local function luau_execute(debugging, stack, protos, code, varargs)
local top, pc, open_upvalues, generalized_iterators = -1, 1, {}, {}
local top, pc, open_upvalues, generalized_iterators = -1, 1, setmetatable({}, {__mode = "vs"}), setmetatable({}, {__mode = "kvs"})
local constants = proto.k
local extensions = luau_settings.extensions

Expand Down Expand Up @@ -1160,6 +1161,8 @@ local function luau_load(module, env, luau_settings)
table_move(passed, start, start + len - 1, 1, varargs.list)
end

passed = nil

local debugging = {pc = 0, name = "NONE"}
local result
if luau_settings.errorHandling then
Expand Down

0 comments on commit 4b76cd4

Please sign in to comment.