1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-08 23:24:19 +00:00

QuickJS: Update header from CHOC upstream, and disable CONFIG_STACK_CHECK

The CONFIG_STACK_CHECK option doesn't work correctly when the QuickJS
engine is initialised on one thread and then later accessed by another
thread, which is a usage pattern implicitly supported by JUCE.
This commit is contained in:
reuk 2025-11-19 11:10:49 +00:00
parent 9715b901a8
commit ef54f013c3
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -9428,9 +9428,8 @@ int JS_SetModuleExportList(JSContext *ctx, JSModuleDef *m,
//#define CONFIG_ATOMICS
#endif
#if ! (defined(EMSCRIPTEN) || _MSC_VER)
/* enable stack limitation */
#define CONFIG_STACK_CHECK
#if ! (defined(EMSCRIPTEN) || CHOC_QUICKJS_NO_STACK_CHECK || _MSC_VER)
#define CONFIG_STACK_CHECK
#endif
// Avoid enabling the stack check if the sanitiser is active, as it causes all

View file

@ -48,6 +48,8 @@
#undef CONFIG_BIGNUM
#endif
#define CHOC_QUICKJS_NO_STACK_CHECK 1
#define choc juce::detail::choc
#include <juce_javascript/choc/javascript/choc_javascript_QuickJS.h>
#undef choc