mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update closure.lua
This commit is contained in:
parent
8267765245
commit
2cef22ecf2
1 changed files with 0 additions and 6 deletions
|
@ -419,11 +419,5 @@ co = coroutine.create(function ()
|
|||
return loadstring("return a")()
|
||||
end)
|
||||
|
||||
a = {a = 15}
|
||||
-- debug.setfenv(co, a)
|
||||
-- assert(debug.getfenv(co) == a)
|
||||
-- assert(select(2, coroutine.resume(co)) == a)
|
||||
-- assert(select(2, coroutine.resume(co)) == a.a)
|
||||
|
||||
|
||||
return 'OK'
|
||||
|
|
Loading…
Add table
Reference in a new issue