diff --git a/quickjs.c b/quickjs.c index 9b997f6..e5f6be5 100644 --- a/quickjs.c +++ b/quickjs.c @@ -1303,7 +1303,7 @@ static const JSClassExoticMethods js_arguments_exotic_methods; static const JSClassExoticMethods js_string_exotic_methods; static const JSClassExoticMethods js_proxy_exotic_methods; static const JSClassExoticMethods js_module_ns_exotic_methods; -static JSClassID js_class_id_alloc = JS_CLASS_INIT_COUNT; +static _Thread_local JSClassID js_class_id_alloc = JS_CLASS_INIT_COUNT; static void js_trigger_gc(JSRuntime *rt, size_t size) {