diff --git a/toolkit/devtools/server/main.js b/toolkit/devtools/server/main.js index 89260e53419a..3ed9203fc4f8 100644 --- a/toolkit/devtools/server/main.js +++ b/toolkit/devtools/server/main.js @@ -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