We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68504b commit 62ad88aCopy full SHA for 62ad88a
api-test.c
@@ -96,6 +96,13 @@ static void async_call_stack_overflow(void)
96
97
JSRuntime *rt = JS_NewRuntime();
98
JSContext *ctx = JS_NewContext(rt);
99
+#if !defined(__clang__) || defined(__OPTIMIZE__)
100
+#if !__has_feature(undefined_behavior_sanitizer) && !__has_feature(memory_sanitizer)
101
+ // TODO: check why this fails under clang -O0 + ubsan/msan
102
+ JS_SetMaxStackSize(rt, 128 * 1024);
103
+ JS_UpdateStackTop(rt);
104
+#endif
105
106
JSValue value = JS_UNDEFINED;
107
JS_SetContextOpaque(ctx, &value);
108
JSValue global = JS_GetGlobalObject(ctx);
0 commit comments