Skip to content

Commit 1c2982b

Browse files
committed
Update doc and test for sunos/solaris switch
1 parent 6e0b8b1 commit 1c2982b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/api/process.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ What processor architecture you're running on: `'arm'`, `'ia32'`, or `'x64'`.
355355
## process.platform
356356

357357
What platform you're running on:
358-
`'darwin'`, `'freebsd'`, `'linux'`, `'solaris'` or `'win32'`
358+
`'darwin'`, `'freebsd'`, `'linux'`, `'sunos'` or `'win32'`
359359

360360
console.log('This platform is ' + process.platform);
361361

test/simple/test-fs-watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ try { fs.mkdirSync(testsubdir, 0700); } catch (e) {}
108108
assert.doesNotThrow(
109109
function() {
110110
var watcher = fs.watch(testsubdir, function(event, filename) {
111-
var renameEv = process.platform === 'solaris' ? 'change' : 'rename';
111+
var renameEv = process.platform === 'sunos' ? 'change' : 'rename';
112112
assert.equal(renameEv, event);
113113
if (expectFilePath) {
114114
assert.equal('newfile.txt', filename);

0 commit comments

Comments
 (0)