summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYarden Shoham <git@yardenshoham.com>2023-05-02 09:05:10 +0300
committerGitHub <noreply@github.com>2023-05-02 15:05:10 +0900
commitcf893741c3206f55eaac1999f50f1018122f7b85 (patch)
treed376ccf5511284f4f6967437f52b52e40212442f
parent2f651b2d64523bdd377d22b8b7213a04ad82f459 (diff)
fix(ext/node): add missing `release` property to node's `process` (#18923)
-rw-r--r--ext/node/polyfills/process.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts
index 5e45fecfd..d2f220734 100644
--- a/ext/node/polyfills/process.ts
+++ b/ext/node/polyfills/process.ts
@@ -331,6 +331,17 @@ class Process extends EventEmitter {
super();
}
+ /** https://nodejs.org/api/process.html#processrelease */
+ get release() {
+ return {
+ name: "node",
+ sourceUrl:
+ `https://nodejs.org/download/release/${version}/node-${version}.tar.gz`,
+ headersUrl:
+ `https://nodejs.org/download/release/${version}/node-${version}-headers.tar.gz`,
+ };
+ }
+
/** https://nodejs.org/api/process.html#process_process_arch */
get arch() {
if (!arch) {