Skip to content

Commit 3a95495

Browse files
committed
fix(event-loop): the Debugger API requires JobQueue::runJobs and JobQueue::saveJobQueue to be implemented
1 parent 973fd21 commit 3a95495

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/JobQueue.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ bool JobQueue::enqueuePromiseJob(JSContext *cx,
3939
}
4040

4141
void JobQueue::runJobs(JSContext *cx) {
42-
// TODO (Tom Tang):
43-
throw std::logic_error("JobQueue::runJobs is not implemented.");
42+
return;
4443
}
4544

4645
// is empty
@@ -50,8 +49,8 @@ bool JobQueue::empty() const {
5049
}
5150

5251
js::UniquePtr<JS::JobQueue::SavedJobQueue> JobQueue::saveJobQueue(JSContext *cx) {
53-
// TODO (Tom Tang): implement this method way later
54-
throw std::logic_error("JobQueue::saveJobQueue is not implemented\n");
52+
auto saved = js::MakeUnique<JS::JobQueue::SavedJobQueue>();
53+
return saved;
5554
}
5655

5756
bool JobQueue::init(JSContext *cx) {

0 commit comments

Comments
 (0)