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:
Jim Blandy 2015-01-05 15:41:29 -08:00
Родитель 63df697d8b
Коммит 842dcb466d
1 изменённых файлов: 13 добавлений и 13 удалений

Просмотреть файл

@ -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