summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-03-02 09:33:28 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-03-01 19:33:28 -0500
commita7bb8ccce85c6e8bd619cce32d34a5d372ef85b7 (patch)
treeb42939351072d2063f4ca0756ac638ed9531880d /js
parent8c310d3d56c6b1bc67ee81d8c5ea9b20abee8088 (diff)
Add Deno.version.gnArgs (#1845)
To display specific build args passed to GN.
Diffstat (limited to 'js')
-rw-r--r--js/version.ts4
-rw-r--r--js/version_test.ts4
2 files changed, 7 insertions, 1 deletions
diff --git a/js/version.ts b/js/version.ts
index 805e565a0..984550a74 100644
--- a/js/version.ts
+++ b/js/version.ts
@@ -3,12 +3,14 @@ interface Version {
deno: string;
v8: string;
typescript: string;
+ gnArgs: string;
}
export const version: Version = {
deno: "",
v8: "",
- typescript: "TS_VERSION" // This string will be replaced by rollup
+ typescript: "TS_VERSION", // This string will be replaced by rollup
+ gnArgs: `GN_ARGS` // This string will be replaced by rollup
};
/**
diff --git a/js/version_test.ts b/js/version_test.ts
index d3d1bc3df..bef00dbc3 100644
--- a/js/version_test.ts
+++ b/js/version_test.ts
@@ -6,3 +6,7 @@ test(function version() {
assert(pattern.test(Deno.version.v8));
assert(pattern.test(Deno.version.typescript));
});
+
+test(function versionGnArgs() {
+ assert(Deno.version.gnArgs.length > 100);
+});