mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
src: Replace macros with util functions
This commit is contained in:
1 parent
9a29aa8c55
commit
22c68fdc1d
38 files changed
+439
-389
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ function Console(stdout, stderr) {
|
||||
if (!(this instanceof Console)) {
|
||||
return new Console(stdout, stderr);
|
||||
}
|
||||
if (!stdout || !IS_FUNCTION(stdout.write)) {
|
||||
if (!stdout || !util.isFunction(stdout.write)) {
|
||||
throw new TypeError('Console expects a writable stream instance');
|
||||
}
|
||||
if (!stderr) {
|
||||
|
||||
Reference in new issue
Block a user