mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
279855df91
- A series of major optimizations to type checking performance on complex programs/types (up to two orders of magnitude speedup for programs involving huge tagged unions) - Fix a few issues encountered by UBSAN (and maybe fix s390x builds) - Fix gcc-11 test builds - Fix a rare corner case where luau_load wouldn't wake inactive threads which could result in a use-after-free due to GC - Fix CLI crash when error object that's not a string escapes to top level - Fix Makefile suffixes on macOS Co-authored-by: Rodactor <rodactor@roblox.com>
15 lines
553 B
Lua
15 lines
553 B
Lua
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
-- This file is based on Lua 5.x tests -- https://github.com/lua/lua/tree/master/testes
|
|
|
|
-- Generate an error (i.e. throw an exception) inside a tag method which is indirectly
|
|
-- called via pcall.
|
|
-- This test is meant to detect a regression in handling errors inside a tag method
|
|
|
|
local testtable = {}
|
|
setmetatable(testtable, { __index = function() error("Error") end })
|
|
|
|
pcall(function()
|
|
testtable.missingmethod()
|
|
end)
|
|
|
|
return('OK')
|