Skip to content

Commit a57ab85

Browse files
authored
Merge pull request #1494 from vkarpov15/patch-2
fix: don't rely on global toString() for checking if object
2 parents 0bfde22 + 6ef70b8 commit a57ab85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ var parseIndexOptions = function(fieldOrSpec) {
230230
}
231231

232232
var isObject = exports.isObject = function (arg) {
233-
return '[object Object]' == toString.call(arg)
233+
return '[object Object]' == Object.prototype.toString.call(arg)
234234
}
235235

236236
var debugOptions = function(debugFields, options) {

0 commit comments

Comments
 (0)