```ts const error = new MyError() throw error.toString() ``` transpiles to ```lua local error = MyError.new() error(tostring(error)) ``` which throws the error `attempt to call local 'error' (a table value)`
transpiles to
which throws the error
attempt to call local 'error' (a table value)