1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00

fix(ext/node): add missing release property to node's process (#18923)

This commit is contained in:
Yarden Shoham 2023-05-02 09:05:10 +03:00 committed by Levente Kurusa
parent 797f0ef42e
commit 2a14ac58fa
No known key found for this signature in database
GPG key ID: 9F72F3C05BA137C4

View file

@ -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) {