0ad/source/gui/ObjectTypes
wraitii 25490bfec3 Improve JS Exception handling.
- 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.
2020-11-15 18:29:17 +00:00
..
CButton.cpp
CButton.h
CChart.cpp Fixes GLES mode builds on Mesa and running on Intel Iris drivers. 2020-01-17 21:13:51 +00:00
CChart.h
CCheckBox.cpp
CCheckBox.h
CDropDown.cpp
CDropDown.h
CGUIDummyObject.h
CImage.cpp
CImage.h
CInput.cpp Remove useless SDL debug message introduced in 5593f573f4. 2020-10-27 21:19:33 +00:00
CInput.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
CList.cpp Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
CList.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
CMiniMap.cpp Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
CMiniMap.h Adds a LOS mask to Minimap. 2020-11-08 08:51:54 +00:00
COList.cpp Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
COList.h Remove counterproductive lowercasing of GUI ScriptEvent names, refs #127. 2020-01-15 16:00:37 +00:00
CProgressBar.cpp
CProgressBar.h
CRadioButton.cpp
CRadioButton.h
CSlider.cpp CSlider inherits IGUIButtonBehavior to gains button sounds, press/release events, duplication removal, continuation of sliding if the object is not hovered while the button is still pressed, refs #2593, c016a74309/D325, 359df88f1a/D1622. 2020-01-24 00:56:51 +00:00
CSlider.h CSlider inherits IGUIButtonBehavior to gains button sounds, press/release events, duplication removal, continuation of sliding if the object is not hovered while the button is still pressed, refs #2593, c016a74309/D325, 359df88f1a/D1622. 2020-01-24 00:56:51 +00:00
CText.cpp Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
CText.h
CTooltip.cpp
CTooltip.h