From fe63f4cb3c48346d818af264cf4773d27e1c3b5d Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Mar 2020 15:59:53 +0100 Subject: [PATCH] Note that js_Report callback must not throw an exception. Nor should it call any functions that may throw exceptions. --- docs/reference.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference.html b/docs/reference.html index 48b2850..66231ec 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -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. +

+The report function must not throw an exception +or call any other MuJS function except js_getcontext(). +

Garbage collection