mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
`JSNatives` passed to SpiderMonkey must not throw exceptions. Most callbacks are wrapped in `ScriptFunction::ToJSNative`. This commit adds exception handling to `ScriptFunction::ToJSNative` so that exceptions thrown in the wrapped callbacks are catched and rethrown as JavaScript `Error`s. |
||
|---|---|---|
| .. | ||
| test_FunctionWrapper.h | ||
| test_Module.h | ||
| test_Promises.h | ||
| test_ScriptConversions.h | ||
| test_ScriptInterface.h | ||