[PATCH] [JSC] fix include error by 263041@main
authorThomas Devoogdt <thomas.devoogdt@barco.com>
Mon, 24 Apr 2023 18:39:42 +0000 (11:39 -0700)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Thu, 11 May 2023 11:12:55 +0000 (12:12 +0100)
https://bugs.webkit.org/show_bug.cgi?id=255867

Reviewed by Yusuke Suzuki.

Seen on webkitgtk-2.38.6 but also applicable on main.

/home/thomas/Documents/buildroot/output/build/webkitgtk-2.38.6/Source/JavaScriptCore/runtime/ArgList.h: In member function ‘decltype(auto) JSC::MarkedVector<T, passedInlineCapacity, OverflowHandler>::at(int) const’:
/home/thomas/Documents/buildroot/output/build/webkitgtk-2.38.6/Source/JavaScriptCore/runtime/ArgList.h:144:20: error: ‘jsCast’ was not declared in this scope
             return jsCast<T>(JSValue::decode(slotFor(i)).asCell());

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
link: https://commits.webkit.org/263324@main
Gbp-Pq: Name fix-jscast-undeclared-error.patch

Source/JavaScriptCore/runtime/ArgList.h

index 07632263266b49ce0e90123a279901c3d8651f59..01a6d5e0e5dcbc1c2dd8a592b999d3f452cea427 100644 (file)
@@ -22,6 +22,7 @@
 #pragma once
 
 #include "CallFrame.h"
+#include "JSCast.h"
 #include <wtf/CheckedArithmetic.h>
 #include <wtf/ForbidHeapAllocation.h>
 #include <wtf/HashSet.h>