aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/ZigGlobalObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/javascript/jsc/bindings/ZigGlobalObject.h')
-rw-r--r--src/javascript/jsc/bindings/ZigGlobalObject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/javascript/jsc/bindings/ZigGlobalObject.h b/src/javascript/jsc/bindings/ZigGlobalObject.h
index 4f8a7871e..41556e639 100644
--- a/src/javascript/jsc/bindings/ZigGlobalObject.h
+++ b/src/javascript/jsc/bindings/ZigGlobalObject.h
@@ -13,6 +13,7 @@ class LazyClassStructure;
namespace WebCore {
class ScriptExecutionContext;
class DOMGuardedObject;
+class EventLoopTask;
}
#include "root.h"
@@ -37,6 +38,8 @@ namespace Zig {
using JSDOMStructureMap = HashMap<const JSC::ClassInfo*, JSC::WriteBarrier<JSC::Structure>>;
using DOMGuardedObjectSet = HashSet<WebCore::DOMGuardedObject*>;
+#define ZIG_GLOBAL_OBJECT_DEFINED
+
class GlobalObject : public JSC::JSGlobalObject {
using Base = JSC::JSGlobalObject;
@@ -111,6 +114,8 @@ public:
WebCore::ScriptExecutionContext* scriptExecutionContext();
WebCore::ScriptExecutionContext* scriptExecutionContext() const;
+ void queueTask(WebCore::EventLoopTask* task);
+
JSDOMStructureMap& structures() WTF_REQUIRES_LOCK(m_gcLock) { return m_structures; }
JSDOMStructureMap& structures(NoLockingNecessaryTag) WTF_IGNORES_THREAD_SAFETY_ANALYSIS
{