Closed ixjf closed 5 years ago
Merged PR.
error
still isn't fully implemented - try
print(pcall(function() error({}) end)) --> false table: 00000000009C4AD0
causes this code to complain about the argument that was passed to error
. (It's worth noting that error()
is considered equivalent to error(nil)
)
Indeed, the documentation for the error function is not very clear. The first parameter does not necessarily have to be a string, and it doesn't seem to be required at all either.
The 'error' function in Lua is not fully implemented, despite http://www.moonsharp.org/MoonSharpStdLib.pdf saying it is. It does not handle the second parameter 'level'.