зеркало из https://github.com/mozilla/gecko-dev.git
Bug 754985: Move DebuggerServer._checkInit near the other initialization code. r=dcamp
try: -b do -p all -u xpcshell,mochitest-dt -t none --HG-- extra : rebase_source : 1112f32797c1e663f1e05358a108913e12e49bcb
This commit is contained in:
Родитель
63df697d8b
Коммит
842dcb466d
|
@ -224,6 +224,19 @@ var DebuggerServer = {
|
|||
dumpn("Debugger server is shut down.");
|
||||
},
|
||||
|
||||
/**
|
||||
* Raises an exception if the server has not been properly initialized.
|
||||
*/
|
||||
_checkInit: function DS_checkInit() {
|
||||
if (!this._transportInitialized) {
|
||||
throw "DebuggerServer has not been initialized.";
|
||||
}
|
||||
|
||||
if (!this.createRootActor) {
|
||||
throw "Use DebuggerServer.addActors() to add a root actor implementation.";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Load a subscript into the debugging global.
|
||||
*
|
||||
|
@ -929,19 +942,6 @@ var DebuggerServer = {
|
|||
return deferred.promise;
|
||||
},
|
||||
|
||||
/**
|
||||
* Raises an exception if the server has not been properly initialized.
|
||||
*/
|
||||
_checkInit: function DS_checkInit() {
|
||||
if (!this._transportInitialized) {
|
||||
throw "DebuggerServer has not been initialized.";
|
||||
}
|
||||
|
||||
if (!this.createRootActor) {
|
||||
throw "Use DebuggerServer.addActors() to add a root actor implementation.";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Create a new debugger connection for the given transport. Called after
|
||||
* connectPipe(), from connectToParent, or from an incoming socket
|
||||
|
|
Загрузка…
Ссылка в новой задаче