1182
1183
call(_: unknown, command: string, args?: any[]): Promise<any> {
1184
>
const target = handler[command];
ipc.ts
1185
>
if (typeof target === 'function') {
1186
>
1187
>
// Revive unless marshalling disabled
1188
>
if (!disableMarshalling && Array.isArray(args)) {
1189
>
for (let i = 0; i < args.length; i++) {
1190
args[i] = revive(args[i]);
1191
}
1193
>
1194
>
let res = target.apply(handler, args);
1195
>
if (!(res instanceof Promise)) {
1196
res = Promise.resolve(res);
1197
}
1199
>
}
1200
1201
throw new ErrorNoTelemetry(`Method not found: ${command}`);
1203
};
1204
}