Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit cf1f029

Browse files
authored
feat: add run-console (#305)
1 parent d22017c commit cf1f029

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/js-peer/src/services/builtins.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,13 @@ export const builtInServices: Record<string, Record<string, GenericCallServiceHa
563563
}
564564
},
565565
},
566+
567+
'run-console': {
568+
print: (req) => {
569+
console.log(...req.args);
570+
return success({});
571+
},
572+
},
566573
} as const;
567574

568575
const checkForArgumentsCount = (req: { args: Array<unknown> }, count: number) => {

0 commit comments

Comments
 (0)