summaryrefslogtreecommitdiff
path: root/runtime/js/01_version.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-08 22:40:18 +0100
committerGitHub <noreply@github.com>2023-02-08 22:40:18 +0100
commit286e5d0be9bb11a69d55f0eedd4a6678b0d48e7d (patch)
tree37399e924de155fbcbeab975222bdb16f257e228 /runtime/js/01_version.js
parentbef50416b92a3ed7bf44b361fc5360f9a52c83e6 (diff)
refactor: internal runtime code TS support (#17672)
This is a proof of concept for being able to snapshot TypeScript files. Currently only a single runtime file is authored in TypeScript - "runtime/js/01_version.ts". Not needed infrastructure was removed from "core/snapshot_util.rs". --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/js/01_version.js')
-rw-r--r--runtime/js/01_version.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/runtime/js/01_version.js b/runtime/js/01_version.js
deleted file mode 100644
index 62f3df17c..000000000
--- a/runtime/js/01_version.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-const primordials = globalThis.__bootstrap.primordials;
-const { ObjectFreeze } = primordials;
-
-const version = {
- deno: "",
- v8: "",
- typescript: "",
-};
-
-function setVersions(
- denoVersion,
- v8Version,
- tsVersion,
-) {
- version.deno = denoVersion;
- version.v8 = v8Version;
- version.typescript = tsVersion;
-
- ObjectFreeze(version);
-}
-
-export { setVersions, version };