summaryrefslogtreecommitdiff
path: root/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'os.ts')
-rw-r--r--os.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/os.ts b/os.ts
index 32988e224..8628edd2a 100644
--- a/os.ts
+++ b/os.ts
@@ -40,3 +40,11 @@ export function codeCache(
codeCacheOutputCode: outputCode
});
}
+
+export function readFileSync(filename: string): Uint8Array {
+ const res = sendMsg("os", {
+ command: pb.Msg.Command.READ_FILE_SYNC,
+ readFileSyncFilename: filename
+ });
+ return res.readFileSyncData;
+}