File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class Gotham {
20
20
21
21
async functionCall ( fnNmame : string , args : FnArgs ) {
22
22
return await this . protocol . sendRequest (
23
- this . protocol . functionCall ( fnNmame , args )
23
+ this . protocol . callFunction ( fnNmame , args )
24
24
) ;
25
25
}
26
26
Original file line number Diff line number Diff line change @@ -145,11 +145,11 @@ export class Protocol {
145
145
}
146
146
}
147
147
148
- callFunction ( moduleId : string , functionName : string , ... args : FnArgs [ ] ) : FunctionCallRequest {
148
+ callFunction ( functionName : string , args : FnArgs ) : FunctionCallRequest {
149
149
return {
150
150
requestId : this . generateRequestId ( ) ,
151
151
type : 'functionCall' ,
152
- function : `${ moduleId } .${ functionName } ` ,
152
+ function : `${ this . moduleId } .${ functionName } ` ,
153
153
arguments : args
154
154
}
155
155
}
@@ -164,7 +164,7 @@ export class Protocol {
164
164
165
165
functionCall ( functionName : string , args : FnArgs ) {
166
166
if ( this . functions [ functionName ] ) {
167
- this . functions [ functionName ] ( ... args ) ;
167
+ this . functions [ functionName ] ( args ) ;
168
168
}
169
169
}
170
170
@@ -197,11 +197,11 @@ export class Protocol {
197
197
if ( res instanceof Promise ) {
198
198
res = await res ;
199
199
}
200
- await this . sendRequest ( {
200
+ this . sendRequest ( {
201
201
requestId : obj . requestId ,
202
202
type : 'functionResponse' ,
203
203
data : res
204
- } , ( ) => { } ) ;
204
+ } ) ;
205
205
}
206
206
}
207
207
You can’t perform that action at this time.
0 commit comments