summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-09-11 10:57:16 -0700
committerisaacs <i@izs.me>2012-09-11 10:57:25 -0700
commit1c2982b94f46765d85b71a0efe3b832d3caff35f (patch)
tree108ee618df90a5e20873de8171b9631f1bc20a01
parent6e0b8b169c18112fdedfdb89237b87007da4c466 (diff)
downloadnode-new-1c2982b94f46765d85b71a0efe3b832d3caff35f.tar.gz
Update doc and test for sunos/solaris switch
-rw-r--r--doc/api/process.markdown2
-rw-r--r--test/simple/test-fs-watch.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/process.markdown b/doc/api/process.markdown
index 3be24db43a..8d7bb48b3d 100644
--- a/doc/api/process.markdown
+++ b/doc/api/process.markdown
@@ -355,7 +355,7 @@ What processor architecture you're running on: `'arm'`, `'ia32'`, or `'x64'`.
## process.platform
What platform you're running on:
-`'darwin'`, `'freebsd'`, `'linux'`, `'solaris'` or `'win32'`
+`'darwin'`, `'freebsd'`, `'linux'`, `'sunos'` or `'win32'`
console.log('This platform is ' + process.platform);
diff --git a/test/simple/test-fs-watch.js b/test/simple/test-fs-watch.js
index 44510b20d7..2ad05f2e11 100644
--- a/test/simple/test-fs-watch.js
+++ b/test/simple/test-fs-watch.js
@@ -108,7 +108,7 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
assert.doesNotThrow(
function() {
var watcher = fs.watch(testsubdir, function(event, filename) {
- var renameEv = process.platform === 'solaris' ? 'change' : 'rename';
+ var renameEv = process.platform === 'sunos' ? 'change' : 'rename';
assert.equal(renameEv, event);
if (expectFilePath) {
assert.equal('newfile.txt', filename);