0ad/binaries/data/mods/_test.sim/simulation/components
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
..
addentity # Automatic runtime validation of entity template files. 2010-04-14 17:22:32 +00:00
interfaces # Added initial support for players and population counters in new simulation system, plus various infrastructure improvements. 2010-01-22 20:03:14 +00:00
error.js Improve JS Exception handling. 2020-11-15 18:29:17 +00:00
test-addentity.js # Basic in-game building placement with new simulation system 2010-01-24 17:24:35 +00:00
test-destroyentity.js Fix warnings in tests 2010-05-10 09:52:35 +00:00
test-entityid.js Support new SpiderMonkey API. 2010-11-16 23:00:52 +00:00
test-global-helper.js Implements global tech modification function. Fixes #1358, refs #1520. 2012-07-03 02:16:45 +00:00
test-helper.js # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
test-hotload1.js Update of the scripting tests. Test some modding features and update JS::Value integer limits. 2019-07-19 15:41:27 +00:00
test-hotload2.js # Automatic runtime validation of entity template files. 2010-04-14 17:22:32 +00:00
test-interface.js # Added initial support for players and population counters in new simulation system, plus various infrastructure improvements. 2010-01-22 20:03:14 +00:00
test-modding1.js Update of the scripting tests. Test some modding features and update JS::Value integer limits. 2019-07-19 15:41:27 +00:00
test-modding2.js Update of the scripting tests. Test some modding features and update JS::Value integer limits. 2019-07-19 15:41:27 +00:00
test-msg.js # Added initial support for players and population counters in new simulation system, plus various infrastructure improvements. 2010-01-22 20:03:14 +00:00
test-param.js # Add initial basic player AI framework. 2011-01-12 12:29:00 +00:00
test-query.js # Rewrite of the game's simulation system 2010-01-09 19:20:14 +00:00
test-serialize.js Fix ESLint semicolon-related warnings 2019-07-01 11:09:19 +00:00
test.js AI prototype chain cleanup. 2019-09-02 17:33:59 +00:00