We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fba9c25 commit 74ceb71Copy full SHA for 74ceb71
include/JobQueue.hh
@@ -28,7 +28,7 @@ class JobQueue : public JS::JobQueue {
28
//
29
public:
30
explicit JobQueue(JSContext *cx);
31
-~JobQueue();
+~JobQueue() = default;
32
33
/**
34
* @brief Ask the embedding for the incumbent global.
src/JobQueue.cc
@@ -15,10 +15,6 @@ JobQueue::JobQueue(JSContext *cx) {
15
finalizationRegistryCallbacks = new JS::PersistentRooted<FunctionVector>(cx);
16
}
17
18
-JobQueue::~JobQueue() {
19
- delete finalizationRegistryCallbacks;
20
-}
21
-
22
JSObject *JobQueue::getIncumbentGlobal(JSContext *cx) {
23
return JS::CurrentGlobalOrNull(cx);
24
0 commit comments