We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
JobQueue::runJobs
JobQueue::saveJobQueue
1 parent 973fd21 commit 3a95495Copy full SHA for 3a95495
src/JobQueue.cc
@@ -39,8 +39,7 @@ bool JobQueue::enqueuePromiseJob(JSContext *cx,
39
}
40
41
void JobQueue::runJobs(JSContext *cx) {
42
- // TODO (Tom Tang):
43
- throw std::logic_error("JobQueue::runJobs is not implemented.");
+ return;
44
45
46
// is empty
@@ -50,8 +49,8 @@ bool JobQueue::empty() const {
50
49
51
52
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");
+ auto saved = js::MakeUnique<JS::JobQueue::SavedJobQueue>();
+ return saved;
55
56
57
bool JobQueue::init(JSContext *cx) {
0 commit comments