mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-18 14:23:56 -07:00
- Check for pending exceptions after function calls and script executions. - Call LOGERROR instead of JS_ReportError when there is a conversion error in FromJSVal, since that can only be called from C++ (where JS errors don't really make sense). Instead, C++ callers of FromJSVal should handle the failure and, themselves, either report an error or simply do something else. - Wrap JS_ReportError since that makes updating it later easier. This isn't a systematical fix since ToJSVal also ought return a boolean for failures, and we probably should trigger errors instead of warnings on 'implicit' conversions, rather a preparation diff. Part of the SM52 migration, stage: SM45 compatible (actually SM52 incompatible, too). Based on a patch by: Itms Comments by: Vladislavbelov, Stan` Refs #742, #4893 Differential Revision: https://code.wildfiregames.com/D3093 This was SVN commit r24187. |
||
|---|---|---|
| .. | ||
| JSInterface_ConfigDB.cpp | ||
| JSInterface_ConfigDB.h | ||
| JSInterface_Console.cpp | ||
| JSInterface_Console.h | ||
| JSInterface_Debug.cpp | ||
| JSInterface_Debug.h | ||
| JSInterface_Game.cpp | ||
| JSInterface_Game.h | ||
| JSInterface_Main.cpp | ||
| JSInterface_Main.h | ||
| JSInterface_Mod.cpp | ||
| JSInterface_Mod.h | ||
| JSInterface_ModIo.cpp | ||
| JSInterface_ModIo.h | ||
| JSInterface_SavedGame.cpp | ||
| JSInterface_SavedGame.h | ||
| JSInterface_UserReport.cpp | ||
| JSInterface_UserReport.h | ||
| JSInterface_VFS.cpp | ||
| JSInterface_VFS.h | ||
| JSInterface_VisualReplay.cpp | ||
| JSInterface_VisualReplay.h | ||