Note that js_Report callback must not throw an exception.

Nor should it call any functions that may throw exceptions.
This commit is contained in:
Tor Andersson
2020-03-11 15:59:53 +01:00
parent e3f04e7f96
commit fe63f4cb3c

View File

@@ -197,6 +197,10 @@ void js_setreport(js_State *J, js_Report report);
Set a callback function for reporting various warnings
and garbage collection statistics.
<p>
The report function must <i>not</i> throw an exception
or call any other MuJS function except js_getcontext().
<h3>Garbage collection</h3>
<pre>