From cf893741c3206f55eaac1999f50f1018122f7b85 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Tue, 2 May 2023 09:05:10 +0300 Subject: [PATCH] fix(ext/node): add missing `release` property to node's `process` (#18923) --- ext/node/polyfills/process.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ext/node/polyfills/process.ts b/ext/node/polyfills/process.ts index 5e45fecfda..d2f220734f 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) {