summaryrefslogtreecommitdiff
path: root/os.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-05-23 11:31:53 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-05-23 11:31:53 -0400
commitbe4883722f00ac71d4586f2e80557fd2ba055d24 (patch)
treef0779d25dca30811a5344dc2ee4fcb6487f2639c /os.ts
parent602ee0d5a1b092faf8f29cac0727a28640aac0b0 (diff)
Rename sendMsgFromObject to sendMsg
Diffstat (limited to 'os.ts')
-rw-r--r--os.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/os.ts b/os.ts
index b2f9e93ba..409c1186f 100644
--- a/os.ts
+++ b/os.ts
@@ -1,15 +1,15 @@
import { ModuleInfo } from "./types";
-import { sendMsgFromObject } from "./dispatch";
+import { sendMsg } from "./dispatch";
export function exit(code = 0): void {
- sendMsgFromObject("os", { exit: { code } });
+ sendMsg("os", { exit: { code } });
}
export function sourceCodeFetch(
moduleSpecifier: string,
containingFile: string
): ModuleInfo {
- const res = sendMsgFromObject("os", {
+ const res = sendMsg("os", {
sourceCodeFetch: { moduleSpecifier, containingFile }
});
return res.sourceCodeFetchRes;
@@ -20,7 +20,7 @@ export function sourceCodeCache(
sourceCode: string,
outputCode: string
): void {
- sendMsgFromObject("os", {
+ sendMsg("os", {
sourceCodeCache: { filename, sourceCode, outputCode }
});
}