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:
parent
9715b901a8
commit
ef54f013c3
2 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue