Skip to content

Commit

Permalink
Merge pull request #35 from mwynholds/master
Browse files Browse the repository at this point in the history
Symbol.for somehow, sometimes goes missing
  • Loading branch information
niftylettuce authored Mar 1, 2021
2 parents 39ad864 + 7717672 commit af1b1b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objectid.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function buffer(str) {
return out;
}

var inspect = (Symbol && Symbol.for('nodejs.util.inspect.custom')) || 'inspect';
var inspect = (Symbol && Symbol.for && Symbol.for('nodejs.util.inspect.custom')) || 'inspect';

/**
* Converts to a string representation of this Id.
Expand Down

0 comments on commit af1b1b4

Please sign in to comment.