mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
10 lines
281 B
TypeScript
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");
|