2022-04-01 15:07:08 +00:00
|
|
|
import { syscall } from "./syscall";
|
|
|
|
|
2022-04-05 15:02:17 +00:00
|
|
|
export async function invokeFunction(
|
|
|
|
env: string,
|
2022-04-01 15:07:08 +00:00
|
|
|
name: string,
|
|
|
|
...args: any[]
|
|
|
|
): Promise<any> {
|
2022-04-06 13:39:20 +00:00
|
|
|
return syscall("system.invokeFunction", env, name, ...args);
|
2022-04-01 15:07:08 +00:00
|
|
|
}
|