Skip to content
Snippets Groups Projects
Commit 0d8755d9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't bother creating Archive.supported_formtsf or jsdoor

parent 484706a8
No related branches found
No related tags found
No related merge requests found
Pipeline #8028 failed
......@@ -708,7 +708,7 @@ JSObject* js_CreateArchiveClass(JSContext* cx, JSObject* parent, const str_list_
, NULL /* props, set in constructor */
, NULL /* funcs, set in constructor */
, NULL, NULL);
if (obj != NULL) {
if (obj != NULL && supported_formats != NULL) {
jsval val;
if (JS_GetProperty(cx, parent, js_archive_class.name, &val) && !JSVAL_NULL_OR_VOID(val)) {
JSObject* constructor;
......
......@@ -273,7 +273,7 @@ bool DLLCALL js_CreateCommonObjects(JSContext* js_cx
break;
/* Archive Class */
if (js_CreateArchiveClass(js_cx, *glob) == NULL)
if (js_CreateArchiveClass(js_cx, *glob, NULL) == NULL)
break;
/* COM Class */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment