summaryrefslogtreecommitdiffstats
path: root/devtools/shared/protocol/lazy-pool.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:14:29 +0000
commitfbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8 (patch)
tree4c1ccaf5486d4f2009f9a338a98a83e886e29c97 /devtools/shared/protocol/lazy-pool.js
parentReleasing progress-linux version 124.0.1-1~progress7.99u1. (diff)
downloadfirefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.tar.xz
firefox-fbaf0bb26397aa498eb9156f06d5a6fe34dd7dd8.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/protocol/lazy-pool.js')
-rw-r--r--devtools/shared/protocol/lazy-pool.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/devtools/shared/protocol/lazy-pool.js b/devtools/shared/protocol/lazy-pool.js
index 0829fef1e0..91a9fb24cf 100644
--- a/devtools/shared/protocol/lazy-pool.js
+++ b/devtools/shared/protocol/lazy-pool.js
@@ -4,7 +4,6 @@
"use strict";
-const { extend } = require("devtools/shared/extend");
const { Pool } = require("devtools/shared/protocol");
/**
@@ -19,11 +18,11 @@ const { Pool } = require("devtools/shared/protocol");
* addActorPool, removeActorPool, and poolFor.
* @constructor
*/
-function LazyPool(conn) {
- this.conn = conn;
-}
+class LazyPool extends Pool {
+ constructor(conn) {
+ super(conn);
+ }
-LazyPool.prototype = extend(Pool.prototype, {
// The actor for a given actor id stored in this pool
getActorByID(actorID) {
if (this.__poolMap) {
@@ -34,8 +33,8 @@ LazyPool.prototype = extend(Pool.prototype, {
return entry;
}
return null;
- },
-});
+ }
+}
exports.LazyPool = LazyPool;