Skip to content

Commit fd1c047

Browse files
committed
upload new build for the Roblox target
1 parent ec7f8f5 commit fd1c047

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

target/roblox/Document.luau

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ type SchemaError = Types.SchemaError
125125
local INTERNAL_SCHEMA_VERSION = 0
126126

127127
local function runHooks(hooks: { () -> () })
128-
for _, hook in hooks do
128+
-- Clone the table instead of iterating backwards, so hooks are executed in the
129+
-- order they were added
130+
for _, hook in table.clone(hooks) do
129131
hook()
130132
end
131133
end

0 commit comments

Comments
 (0)