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
--- a/testing/marionette/transport.js
+++ b/testing/marionette/transport.js
@@ -816,16 +816,18 @@ ChildDebuggerTransport.prototype = {
// messages from multiple connections to be multiplexed on a single channel.
if (!this.isWorker) {
// Main thread
(function() {
/**
* 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;
this._id = id;
this.onMessage = this._onMessage.bind(this);
}
WorkerDebuggerTransport.prototype = {
@@ -868,16 +870,18 @@ if (!this.isWorker) {
}).call(this);
} else {
// Worker thread
(function() {
/**
* 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;
this._id = id;
this._onMessage = this._onMessage.bind(this);
}
WorkerDebuggerTransport.prototype = {