summaryrefslogtreecommitdiff
path: root/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.ts b/main.ts
index 38044b3d8..9071c2fcd 100644
--- a/main.ts
+++ b/main.ts
@@ -1,7 +1,10 @@
import * as ts from "typescript";
+import { main as pb } from "./msg.pb"
V8Worker2.recv((ab: ArrayBuffer) {
+ let msg = pb.Msg.decode(new Uint8Array(ab));
V8Worker2.print("Got array buffer", ab.byteLength);
+ V8Worker2.print("msg.argv", msg.argv);
});
V8Worker2.print("Hello");