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.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/js/01_build.js b/runtime/js/01_build.js
index 23a1c819b..778331cdd 100644
--- a/runtime/js/01_build.js
+++ b/runtime/js/01_build.js
@@ -13,7 +13,11 @@
};
function setBuildInfo(target) {
- const [arch, vendor, os, env] = StringPrototypeSplit(target, "-", 4);
+ const { 0: arch, 1: vendor, 2: os, 3: env } = StringPrototypeSplit(
+ target,
+ "-",
+ 4,
+ );
build.target = target;
build.arch = arch;
build.vendor = vendor;