File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function expectState(expectedState, calledMethod) {
5151 }
5252
5353 try {
54- return method . apply ( this , args ) ;
54+ return calledMethod . apply ( this , args ) ;
5555 } catch ( err ) {
5656 Cu . reportError ( "actor.js; expectState EXCEPTION " + err , err ) ;
5757 }
@@ -139,7 +139,7 @@ var InspectorActor = ActorClass(
139139 /**
140140 * A test remote method.
141141 */
142- getActors : method ( function ( ) {
142+ getActors : method ( expectState ( "attached" , function ( ) {
143143 let result = { } ;
144144
145145 Trace . sysout ( "inspectorActor.getActors; connection " , this . conn ) ;
@@ -169,7 +169,7 @@ var InspectorActor = ActorClass(
169169 result . factories . tab = dumpFactories ( DebuggerServer . tabActorFactories ) ;
170170
171171 return result ;
172- } , {
172+ } ) , {
173173 request : { } ,
174174 response : RetVal ( "json" )
175175 } )
You can’t perform that action at this time.
0 commit comments