tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit d23ea559cf906cb138262bbc1c459bc7adb5b2d7
parent 1f5b7af922d6107dbf486213cae427a0ee0a93bf
Author: Lorenz A <me@lorenzackermann.xyz>
Date:   Tue, 16 Dec 2025 08:44:41 +0000

Bug 2004245 - Turn devtools/server/actors/thread.js into an ES class. r=devtools-reviewers,nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D276550

Diffstat:
Mdevtools/server/actors/thread.js | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/devtools/server/actors/thread.js b/devtools/server/actors/thread.js @@ -2366,17 +2366,17 @@ exports.ThreadActor = ThreadActor; * * PauseActors exist for the lifetime of a given debuggee pause. Used to * scope pause-lifetime grips. - * - * @param {Pool} pool: The actor pool created for this pause. */ -function PauseActor(pool) { - this.pool = pool; +class PauseActor { + /** + * @param {Pool} pool: The actor pool created for this pause. + */ + constructor(pool) { + this.pool = pool; + } + typeName = "pause"; } -PauseActor.prototype = { - typeName: "pause", -}; - // Utility functions. /**