mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
6da958d7ec
Updated third_party dlint to v0.37.0 for GitHub Actions. This PR includes following changes: * fix(prefer-primordials): Stop using array pattern assignments * fix(prefer-primordials): Stop using global intrinsics except for `SharedArrayBuffer` * feat(guard-for-in): Apply new guard-for-in rule
33 lines
686 B
JavaScript
33 lines
686 B
JavaScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
"use strict";
|
|
|
|
((window) => {
|
|
const { ObjectFreeze, StringPrototypeSplit } = window.__bootstrap.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);
|
|
}
|
|
|
|
window.__bootstrap.build = {
|
|
build,
|
|
setBuildInfo,
|
|
};
|
|
})(this);
|