18#ifndef INCLUDED_SCRIPTINTERFACE_JOBQUEUE
19#define INCLUDED_SCRIPTINTERFACE_JOBQUEUE
22# pragma warning(push, 1)
24#include "js/Promise.h"
36 JS::PromiseRejectionHandlingState
state,
void*);
49 JS::HandleObject) final;
51 bool empty() const final;
58 JS::PersistentRootedObject
job;
Abstraction around a SpiderMonkey JS::Realm.
Definition: ScriptInterface.h:72
Definition: Promises.h:39
void runJobs(JSContext *) final
Definition: Promises.cpp:47
bool enqueuePromiseJob(JSContext *cx, JS::HandleObject, JS::HandleObject job, JS::HandleObject, JS::HandleObject) final
Definition: Promises.cpp:67
JSObject * getIncumbentGlobal(JSContext *cx) final
Definition: Promises.cpp:62
js::UniquePtr< JS::JobQueue::SavedJobQueue > saveJobQueue(JSContext *) final
Definition: Promises.cpp:86
QueueType m_Jobs
Definition: Promises.h:61
~JobQueue() final=default
bool empty() const final
Definition: Promises.cpp:81
std::queue< QueueElement > QueueType
Definition: Promises.h:60
Definition: ScriptForward.h:41
Wraps SM APIs for manipulating JS objects.
Definition: JSON.h:35
void UnhandledRejectedPromise(JSContext *cx, bool, JS::HandleObject promise, JS::PromiseRejectionHandlingState state, void *)
Definition: Promises.cpp:31
Definition: ScriptForward.h:45
Definition: Promises.h:56
const ScriptInterface & scriptInterface
Definition: Promises.h:57
JS::PersistentRootedObject job
Definition: Promises.h:58