diff --git a/quickjs.c b/quickjs.c index 9c78960..b1a42e5 100644 --- a/quickjs.c +++ b/quickjs.c @@ -1403,7 +1403,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; /* JS malloc */