1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
denoland-deno/main.ts
2018-05-14 01:11:56 -04:00

10 lines
281 B
TypeScript

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");