ports/www/elinks/files/patch-src_js_spidermonkey_fragment.cpp
Dustin Marquess c8b37a8387 www/elinks: Update to 0.18.0
Drop the libCSS/libdom patch as it's not needed anymore.
Removes options that don't require a library installed from a package
(except for EXMODE/LOCAL_CGI/NOROOT)
Wire in the test suite.
Add MUJS, PYTHON, and SIXEL options.

PR:		281909
Approved by:	submitter is maintainer
2025-01-12 21:12:28 +01:00

11 lines
560 B
C++

--- src/js/spidermonkey/fragment.cpp.orig 2024-12-26 11:02:09 UTC
+++ src/js/spidermonkey/fragment.cpp
@@ -2290,7 +2290,7 @@ DocumentFragment_constructor(JSContext *ctx, unsigned
}
JS::Realm *comp = js::GetContextRealm(ctx);
struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)JS::GetRealmPrivate(comp);
- JS::RootedObject r_doc(ctx, interpreter->document_obj);
+ JS::RootedObject r_doc(ctx, (JSObject *)interpreter->document_obj);
dom_document *doc = JS::GetMaybePtrFromReservedSlot<dom_document>(r_doc, 0);
if (!doc) {