Skip to content

Commit c29feaf

Browse files
delanatbrakhi
andcommitted
Implement runJobs() for the SpiderMonkey Debugger API
Co-authored-by: atbrakhi <[email protected]> Signed-off-by: Delan Azabani <[email protected]>
1 parent 6c2b02f commit c29feaf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mozjs-sys/src/jsglue.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ struct JobQueueTraps {
4848
JS::HandleObject promise, JS::HandleObject job,
4949
JS::HandleObject allocationSite,
5050
JS::HandleObject incumbentGlobal) = 0;
51+
void (*runJobs)(const void* queue, JSContext* cx);
5152
bool (*empty)(const void* queue);
5253

5354
// Create a new queue, push it onto an embedder-side stack, and return the new
@@ -87,9 +88,7 @@ class RustJobQueue : public JS::JobQueue {
8788

8889
virtual bool empty() const override { return mTraps.empty(mQueue); }
8990

90-
virtual void runJobs(JSContext* cx) override {
91-
MOZ_ASSERT(false, "runJobs should not be invoked");
92-
}
91+
virtual void runJobs(JSContext* cx) override { mTraps.runJobs(mQueue, cx); }
9392

9493
bool isDrainingStopped() const override { return false; }
9594

0 commit comments

Comments
 (0)