devtools-sham-modules
Advanced tools
Comparing version 0.0.17 to 0.0.18
{ | ||
"name": "devtools-sham-modules", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Shammed DevTools Modules from M-C", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,7 +9,6 @@ /* -*- js-indent-level: 2; indent-tabs-mode: nil -*- */ | ||
const {Cc, Ci, Cu} = require("../../sham/chrome"); | ||
const { Cc, Ci, Cu } = require("../../sham/chrome"); | ||
const DevToolsUtils = require("../DevToolsUtils"); | ||
const EventEmitter = require("../event-emitter"); | ||
const promise = require("../../sham/promise"); | ||
const {LongStringClient} = require("../client/main"); | ||
@@ -25,7 +24,10 @@ /** | ||
* the WebConsoleActor. | ||
* @param object LongStringClient | ||
* LongStringClient constructor to get full string from server | ||
*/ | ||
function WebConsoleClient(aDebuggerClient, aResponse) | ||
function WebConsoleClient(aDebuggerClient, aResponse, LongStringClient) | ||
{ | ||
this._actor = aResponse.from; | ||
this._client = aDebuggerClient; | ||
this.LongStringClient = LongStringClient; | ||
this._longStrings = {}; | ||
@@ -600,2 +602,3 @@ this.traits = aResponse.traits || {}; | ||
let LongStringClient = this.LongStringClient.bind(this); | ||
let client = new LongStringClient(this._client, aGrip); | ||
@@ -602,0 +605,0 @@ this._longStrings[aGrip.actor] = client; |
Sorry, the diff of this file is too big to display
536418
14245