Skip to content

Commit 63d89b7

Browse files
committed
Execute proper callback
1 parent 3973400 commit 63d89b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/inspector-actor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)