summaryrefslogtreecommitdiff
path: root/deno2/js/main.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-12 06:36:01 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-12 17:26:18 +0200
commit7784cc2c1537a23b8b8ffa634b1a9b1ddf88886a (patch)
tree9c9d1de258b586e7fe866b8a4085cecf9fda430a /deno2/js/main.ts
parentdd48f8095c3357e6ec0e66042141c4e342707da5 (diff)
Fix protobufjs snapshotting.
Diffstat (limited to 'deno2/js/main.ts')
-rw-r--r--deno2/js/main.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/deno2/js/main.ts b/deno2/js/main.ts
index f9d69f22f..301482ea6 100644
--- a/deno2/js/main.ts
+++ b/deno2/js/main.ts
@@ -1,12 +1,13 @@
/// <reference path="deno.d.ts" />
-//import { main as pb } from "./msg.pb"
+import { main as pb } from "./msg.pb";
import * as ts from "typescript";
const globalEval = eval;
const window = globalEval("this");
window["denoMain"] = () => {
- //const msg = pb.Msg.fromObject({});
- //denoPrint(`msg.command: ${msg.command}`);
+ denoPrint("Hello world");
+ const msg = pb.Msg.fromObject({});
+ denoPrint(`msg.command: ${msg.command}`);
denoPrint(`ts.version: ${ts.version}`);
denoPrint("Hello world from foo");
return "foo";