diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-09-04 11:12:21 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-03 22:12:21 -0400 |
commit | 249db0f7d91d5e895906078f92b7d31c76b96121 (patch) | |
tree | 3a9dc5f04ce1bd01b4762f06ff24dd6127f26ae5 /js/main.ts | |
parent | e9908453df970b1cdf90483892bc9e794382fccc (diff) |
Handle typescript version in rust (#2855)
Diffstat (limited to 'js/main.ts')
-rw-r--r-- | js/main.ts | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/js/main.ts b/js/main.ts index 31a7647df..6ce3551ac 100644 --- a/js/main.ts +++ b/js/main.ts @@ -1,5 +1,4 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. - import "./globals.ts"; import { assert, log } from "./util.ts"; @@ -11,21 +10,11 @@ import { xevalMain, XevalFunc } from "./xeval.ts"; import { setVersions } from "./version.ts"; import { window } from "./window.ts"; import { setLocation } from "./location.ts"; -import * as Deno from "./deno.ts"; function denoMain(preserveDenoNamespace: boolean = true, name?: string): void { const s = os.start(preserveDenoNamespace, name); - setVersions(s.denoVersion, s.v8Version); - - // handle `--version` - if (s.versionFlag) { - const { console } = window; - console.log("deno:", Deno.version.deno); - console.log("v8:", Deno.version.v8); - console.log("typescript:", Deno.version.typescript); - os.exit(0); - } + setVersions(s.denoVersion, s.v8Version, s.tsVersion); setPrepareStackTrace(Error); |