mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 14:22:28 +00:00
Upgrade Lua to 5.4.3 (#217)
Based on https://github.com/lua/lua/releases/tag/v5.4.3 (commit eadd8c7).
This commit is contained in:
parent
3ac6576fe5
commit
a73e808b25
41 changed files with 464 additions and 264 deletions
6
third_party/lua/test/locals.lua
vendored
6
third_party/lua/test/locals.lua
vendored
|
@ -5,6 +5,8 @@ print('testing local variables and environments')
|
|||
|
||||
local debug = require"debug"
|
||||
|
||||
local tracegc = require"tracegc"
|
||||
|
||||
|
||||
-- bug in 5.1:
|
||||
|
||||
|
@ -554,9 +556,9 @@ do -- test for tbc variable high in the stack
|
|||
obj[1] = 100
|
||||
flag = obj
|
||||
end)
|
||||
collectgarbage("stop")
|
||||
tracegc.stop()
|
||||
st, obj = xpcall(overflow, errorh, 0)
|
||||
collectgarbage("restart")
|
||||
tracegc.start()
|
||||
end)
|
||||
co()
|
||||
assert(not st and obj[1] == 10 and flag[1] == 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue