blob: cf177ed65cbb3b500da04074e7b2c5a11e9bd7c8 (
plain) (
tree)
|
|
-- Test interpreter error handling.
if arg[1] == "nil" then
error(nil)
elseif arg[1] == "string" then
error("string")
elseif arg[1] == "table" then
error({})
elseif arg[1] == "metaerror" then
error(setmetatable({}, {__tostring=error}))
end
|