Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
console: make __autocomplete retrieval for cdata exception-safe
Currently, the code which tries to retrieve the __autocomplete metamethod for cdata (cf644ab) is not exception safe: an exception can be thrown from the __index metamethod. In order to make it exception-safe and not overcomplicate the code, let's add a Lua wrapper for table indexation, so we can call it from C using `lua_pcall`. Closes #9828 NO_CHANGELOG=<not released> NO_DOC=<bugfix>
- Loading branch information
1 parent
c56998f
commit ff7d8f0
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters