mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
14 lines
405 B
TypeScript
14 lines
405 B
TypeScript
/// <reference path="deno.d.ts" />
|
|
import { main as pb } from "./msg.pb";
|
|
import * as ts from "typescript";
|
|
|
|
const globalEval = eval;
|
|
const window = globalEval("this");
|
|
window["denoMain"] = () => {
|
|
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";
|
|
};
|