Bug 1441019 - Differentiate WorkerDebuggerTransport implementations. r=whimboo

In the transport module there are two implementations of
WorkDebuggerTransport: one for the main thread and another that is
suitable for worker threads.  This confuses JSDoc because they both
exist in the same anonymous scope.

MozReview-Commit-ID: 2UE4D6K97Qb

--HG--
extra : rebase_source : 7a774320db37a05b6d7a0934e53279af4361b198
This commit is contained in:
Andreas Tolfsen 2018-02-26 11:36:24 +00:00
parent 8762d0c370
commit 2767fe366c

View File

@ -821,6 +821,8 @@ if (!this.isWorker) {
/**
* A transport that uses a WorkerDebugger to send packets from the main
* thread to a worker thread.
*
* @class WorkerDebuggerTransport
*/
function WorkerDebuggerTransport(dbg, id) {
this._dbg = dbg;
@ -873,6 +875,8 @@ if (!this.isWorker) {
/**
* A transport that uses a WorkerDebuggerGlobalScope to send packets
* from a worker thread to the main thread.
*
* @class WorkerDebuggerTransportThread
*/
function WorkerDebuggerTransport(scope, id) {
this._scope = scope;