Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Sync to 0.571
Browse files Browse the repository at this point in the history
  • Loading branch information
RealEthanPlayzDev committed Apr 12, 2023
1 parent b249be1 commit 970fd37
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion luau
Submodule luau updated from 140e5a to 734589
12 changes: 6 additions & 6 deletions snippets/ExtraCodeSnippet.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
--// Named function dictionary
local NamedFunctionList = {
--// Luau
["luau_compile"] = FUNC_LIST[373];
["luau_compile"] = FUNC_LIST[374];
["luaL_newstate"] = FUNC_LIST[586];
["luaL_openlibs"] = FUNC_LIST[584];
["lua_close"] = FUNC_LIST[652];
["luaL_sandbox"] = FUNC_LIST[585];
["lua_tolstring"] = FUNC_LIST[399];

--// Standard Library
["dlmalloc"] = FUNC_LIST[1255];
["dlfree"] = FUNC_LIST[1256];
["dlmalloc"] = FUNC_LIST[1257];
["dlfree"] = FUNC_LIST[1258];

--// WebAssembly
["__wasm_call_ctors"] = FUNC_LIST[11];
Expand Down Expand Up @@ -52,12 +52,12 @@ FUNC_LIST[2] = function(destination, source, size)
end

--// emscripten_date_now
FUNC_LIST[7] = function()
FUNC_LIST[3] = function()
return NOW_TIME + os.clock() * 1000
end

--// fd_write
FUNC_LIST[8] = function(fd, list, count, ret_pointer)
FUNC_LIST[7] = function(fd, list, count, ret_pointer)
local file = FILE_MAP[fd]
if not file then return 8 end
local total = 0
Expand Down Expand Up @@ -88,7 +88,7 @@ local function lua_try_catch(index, ...)
return TABLE_LIST[0].data[index](...)
end

for _, v in ipairs { 1, 3, 4, 5, 6, 9 } do
for _, v in ipairs { 1,4,5,6,8,9 } do
FUNC_LIST[v] = lua_try_catch
end

Expand Down

0 comments on commit 970fd37

Please sign in to comment.