diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 3be24db43a0..8d7bb48b3dc 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 44510b20d71..2ad05f2e117 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);