diff options
author | Yarden Shoham <git@yardenshoham.com> | 2023-05-02 09:05:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 15:05:10 +0900 |
commit | cf893741c3206f55eaac1999f50f1018122f7b85 (patch) | |
tree | d376ccf5511284f4f6967437f52b52e40212442f | |
parent | 2f651b2d64523bdd377d22b8b7213a04ad82f459 (diff) |
fix(ext/node): add missing `release` property to node's `process` (#18923)
-rw-r--r-- | ext/node/polyfills/process.ts | 11 |
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) { |