diff options
Diffstat (limited to 'lib/internal/util.js')
-rw-r--r-- | lib/internal/util.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/internal/util.js b/lib/internal/util.js index e7dca9a23c..82c42e2772 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -1,6 +1,6 @@ 'use strict'; -const { Reflect } = primordials; +const { Object, Reflect } = primordials; const { ERR_INVALID_ARG_TYPE, @@ -33,10 +33,6 @@ function isError(e) { return isNativeError(e) || e instanceof Error; } -function objectToString(o) { - return Object.prototype.toString.call(o); -} - // Keep a list of deprecation codes that have been warned on so we only warn on // each one once. const codesWarned = {}; @@ -402,7 +398,6 @@ module.exports = { isInsideNodeModules, join, normalizeEncoding, - objectToString, once, promisify, spliceOne, |