Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2017-06-30 22:31:21 +0300
committerTobias Nießen <tniessen@tnie.de>2017-07-03 17:28:02 +0300
commit44256bb0aaa54df60ec3d2c53bcfe7004fb61427 (patch)
tree420d92ab612a9ee68dbb894b3a892eb137832917 /lib/path.js
parent1d7414354e4cce9ebc48c4f7117170c746f12970 (diff)
path: fix incorrect use of ERR_INVALID_ARG_TYPE
PR-URL: https://github.com/nodejs/node/pull/14011 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'lib/path.js')
-rw-r--r--lib/path.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/path.js b/lib/path.js
index f8d0e822bf1..001152866ff 100644
--- a/lib/path.js
+++ b/lib/path.js
@@ -960,7 +960,7 @@ const win32 = {
format: function format(pathObject) {
if (pathObject === null || typeof pathObject !== 'object') {
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'pathObject', 'Object',
- typeof pathObject);
+ pathObject);
}
return _format('\\', pathObject);
},
@@ -1503,7 +1503,7 @@ const posix = {
format: function format(pathObject) {
if (pathObject === null || typeof pathObject !== 'object') {
throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'pathObject', 'Object',
- typeof pathObject);
+ pathObject);
}
return _format('/', pathObject);
},