File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ struct JobQueueTraps {
48
48
JS::HandleObject promise, JS::HandleObject job,
49
49
JS::HandleObject allocationSite,
50
50
JS::HandleObject incumbentGlobal) = 0 ;
51
+ void (*runJobs)(const void * queue, JSContext* cx);
51
52
bool (*empty)(const void * queue);
52
53
53
54
// Create a new queue, push it onto an embedder-side stack, and return the new
@@ -87,9 +88,7 @@ class RustJobQueue : public JS::JobQueue {
87
88
88
89
virtual bool empty () const override { return mTraps .empty (mQueue ); }
89
90
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); }
93
92
94
93
bool isDrainingStopped () const override { return false ; }
95
94
You can’t perform that action at this time.
0 commit comments