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) {
51
51
}
52
52
53
53
try {
54
- return method . apply ( this , args ) ;
54
+ return calledMethod . apply ( this , args ) ;
55
55
} catch ( err ) {
56
56
Cu . reportError ( "actor.js; expectState EXCEPTION " + err , err ) ;
57
57
}
@@ -139,7 +139,7 @@ var InspectorActor = ActorClass(
139
139
/**
140
140
* A test remote method.
141
141
*/
142
- getActors : method ( function ( ) {
142
+ getActors : method ( expectState ( "attached" , function ( ) {
143
143
let result = { } ;
144
144
145
145
Trace . sysout ( "inspectorActor.getActors; connection " , this . conn ) ;
@@ -169,7 +169,7 @@ var InspectorActor = ActorClass(
169
169
result . factories . tab = dumpFactories ( DebuggerServer . tabActorFactories ) ;
170
170
171
171
return result ;
172
- } , {
172
+ } ) , {
173
173
request : { } ,
174
174
response : RetVal ( "json" )
175
175
} )
You can’t perform that action at this time.
0 commit comments