mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-11 22:30:53 +01:00
spelling: resurrect
This commit is contained in:
parent
e3f15d976e
commit
1bf80d91ab
2 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ UpVal* luaF_findupval(lua_State* L, StkId level)
|
||||||
if (p->v == level)
|
if (p->v == level)
|
||||||
{ /* found a corresponding upvalue? */
|
{ /* found a corresponding upvalue? */
|
||||||
if (isdead(g, obj2gco(p))) /* is it dead? */
|
if (isdead(g, obj2gco(p))) /* is it dead? */
|
||||||
changewhite(obj2gco(p)); /* ressurect it */
|
changewhite(obj2gco(p)); /* resurrect it */
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
pp = &p->next;
|
pp = &p->next;
|
||||||
|
|
|
@ -277,7 +277,7 @@ do
|
||||||
assert(getmetatable(o) == tt)
|
assert(getmetatable(o) == tt)
|
||||||
-- create new objects during GC
|
-- create new objects during GC
|
||||||
local a = 'xuxu'..(10+3)..'joao', {}
|
local a = 'xuxu'..(10+3)..'joao', {}
|
||||||
___Glob = o -- ressurect object!
|
___Glob = o -- resurrect object!
|
||||||
newproxy(o) -- creates a new one with same metatable
|
newproxy(o) -- creates a new one with same metatable
|
||||||
print(">>> closing state " .. "<<<\n")
|
print(">>> closing state " .. "<<<\n")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue