2018-06-12 03:54:55 +02:00
|
|
|
/// <reference path="deno.d.ts" />
|
2018-06-13 19:37:24 +02:00
|
|
|
import { deno as pb } from "./msg.pb";
|
2018-06-12 03:54:55 +02:00
|
|
|
import * as ts from "typescript";
|
|
|
|
|
2018-06-10 00:32:04 +02:00
|
|
|
const globalEval = eval;
|
|
|
|
const window = globalEval("this");
|
2018-06-11 22:29:34 +02:00
|
|
|
window["denoMain"] = () => {
|
2018-06-12 06:36:01 +02:00
|
|
|
denoPrint("Hello world");
|
|
|
|
const msg = pb.Msg.fromObject({});
|
|
|
|
denoPrint(`msg.command: ${msg.command}`);
|
2018-06-12 03:54:55 +02:00
|
|
|
denoPrint(`ts.version: ${ts.version}`);
|
2018-06-11 22:41:43 +02:00
|
|
|
denoPrint("Hello world from foo");
|
2018-06-10 00:32:04 +02:00
|
|
|
return "foo";
|
2018-06-11 21:32:06 +02:00
|
|
|
};
|