Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions nginx/ngx_js_shared_dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ static JSClassDef ngx_qjs_shared_class = {
},
};

static JSClassDef ngx_qjs_shared_dict_error_class = {
"SharedDictError",
.finalizer = NULL,
};

qjs_module_t ngx_qjs_ngx_shared_dict_module = {
.name = "shared_dict",
.init = ngx_qjs_ngx_shared_dict_init,
Expand Down Expand Up @@ -3001,6 +3006,12 @@ ngx_qjs_ngx_shared_dict_init(JSContext *cx, const char *name)
return NULL;
}

if (JS_NewClass(JS_GetRuntime(cx), NGX_QJS_CLASS_ID_SHARED_DICT_ERROR,
&ngx_qjs_shared_dict_error_class) < 0)
{
return NULL;
}

proto = JS_NewObject(cx);
if (JS_IsException(proto)) {
return NULL;
Expand Down