You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running inside FiveM's runtime environment, errors cause an unhandled TypeError when inferring the stack is an string.
I know this is kinda niche issue, but an issue nontheless.
Changing !is.undefined(error.stack) to is_1.string(error.stack) in HERE solves it! I'll make an PR for that in a bit.
Actual behavior
Its not even caught by the uncaughtException process event due to how FXServer node integration works. The following is just printed to the console.
Executing got()
Error calling system tick function in resource monitor: TypeError: this.stack.slice(...).split is not a function
stack:
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Describe the bug
When running inside FiveM's runtime environment, errors cause an unhandled TypeError when inferring the stack is an string.
I know this is kinda niche issue, but an issue nontheless.
Changing
!is.undefined(error.stack)
tois_1.string(error.stack)
in HERE solves it! I'll make an PR for that in a bit.Actual behavior
Its not even caught by the
uncaughtException
process event due to how FXServer node integration works. The following is just printed to the console.Expected behavior
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: