summaryrefslogtreecommitdiff
path: root/runtime/js/01_build.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/01_build.js')
-rw-r--r--runtime/js/01_build.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/runtime/js/01_build.js b/runtime/js/01_build.js
deleted file mode 100644
index a9515c5b8..000000000
--- a/runtime/js/01_build.js
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-
-const primordials = globalThis.__bootstrap.primordials;
-const { ObjectFreeze, StringPrototypeSplit } = primordials;
-
-const build = {
- target: "unknown",
- arch: "unknown",
- os: "unknown",
- vendor: "unknown",
- env: undefined,
-};
-
-function setBuildInfo(target) {
- const { 0: arch, 1: vendor, 2: os, 3: env } = StringPrototypeSplit(
- target,
- "-",
- 4,
- );
- build.target = target;
- build.arch = arch;
- build.vendor = vendor;
- build.os = os;
- build.env = env;
- ObjectFreeze(build);
-}
-
-export { build, setBuildInfo };