diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-23 11:31:53 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-23 11:31:53 -0400 |
commit | be4883722f00ac71d4586f2e80557fd2ba055d24 (patch) | |
tree | f0779d25dca30811a5344dc2ee4fcb6487f2639c /os.ts | |
parent | 602ee0d5a1b092faf8f29cac0727a28640aac0b0 (diff) |
Rename sendMsgFromObject to sendMsg
Diffstat (limited to 'os.ts')
-rw-r--r-- | os.ts | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 } }); } |