Skip to content

Conversation

@vegorov-rbx
Copy link
Collaborator

From the yieldable pcall/xpcall it is easy to assume everything about pcall/xpcall is yieldable, but it was actually only about the target function being called, not the error handler.
In Luau, yielding from xpcall error handler is considered an 'error in error handling'.
Lua 5.2 went really hard into yielding support from all locations, which comes with the complexity of each operator and especially the error handler which takes an extra record in the call info data.

This update notes this difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants