2021-01-11 12:13:41 -05:00
|
|
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
2021-02-04 17:18:32 -05:00
|
|
|
"use strict";
|
2020-07-19 13:49:44 -04:00
|
|
|
|
|
|
|
((window) => {
|
2021-07-03 10:58:08 -04:00
|
|
|
const { ObjectFreeze } = window.__bootstrap.primordials;
|
|
|
|
|
2020-07-19 13:49:44 -04:00
|
|
|
const version = {
|
|
|
|
deno: "",
|
|
|
|
v8: "",
|
|
|
|
typescript: "",
|
|
|
|
};
|
|
|
|
|
|
|
|
function setVersions(
|
|
|
|
denoVersion,
|
|
|
|
v8Version,
|
|
|
|
tsVersion,
|
|
|
|
) {
|
|
|
|
version.deno = denoVersion;
|
|
|
|
version.v8 = v8Version;
|
|
|
|
version.typescript = tsVersion;
|
|
|
|
|
2021-07-03 10:58:08 -04:00
|
|
|
ObjectFreeze(version);
|
2020-07-19 13:49:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
window.__bootstrap.version = {
|
|
|
|
version,
|
|
|
|
setVersions,
|
|
|
|
};
|
|
|
|
})(this);
|