From 4f50d3fb9045b366fcea6981f79f2f4704468e54 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Thu, 20 Aug 2015 21:45:38 -0400 Subject: [PATCH] process: make process.release.name "node" This commit sets the value of process.release.name to "node". Fixes: https://github.com/nodejs/node/issues/2361 PR-URL: https://github.com/nodejs/node/pull/2367 Reviewed-By: James M Snell Reviewed-By: Rod Vagg --- doc/api/process.markdown | 5 +++-- src/node.cc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 1d0bff3eb31989..7d3fc8de0ac64a 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -679,7 +679,8 @@ for the source tarball and headers-only tarball. `process.release` contains the following properties: -* `name`: a string with a value that will always be `"node.js"` for Node.js. +* `name`: a string with a value that will always be `"node"` for Node.js. For + legacy io.js releases, this will be `"io.js"`. * `sourceUrl`: a complete URL pointing to a _.tar.gz_ file containing the source of the current release. * `headersUrl`: a complete URL pointing to a _.tar.gz_ file containing only @@ -693,7 +694,7 @@ for the source tarball and headers-only tarball. e.g. - { name: 'node.js', + { name: 'node', sourceUrl: 'https://nodejs.org/download/release/v4.0.0/node-v4.0.0.tar.gz', headersUrl: 'https://nodejs.org/download/release/v4.0.0/node-v4.0.0-headers.tar.gz', libUrl: 'https://nodejs.org/download/release/v4.0.0/win-x64/node.lib' } diff --git a/src/node.cc b/src/node.cc index bfb1ebb2f0661d..3c6441a6f2531e 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2768,7 +2768,7 @@ void SetupProcessObject(Environment* env, // process.release Local release = Object::New(env->isolate()); READONLY_PROPERTY(process, "release", release); - READONLY_PROPERTY(release, "name", OneByteString(env->isolate(), "node.js")); + READONLY_PROPERTY(release, "name", OneByteString(env->isolate(), "node")); // if this is a release build and no explicit base has been set // substitute the standard release download URL