Skip to content

Commit

Permalink
Update lib/types.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored Sep 11, 2024
1 parent 3d9efd5 commit ee6aecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -3074,7 +3074,7 @@ function getValueBucket(val, namespace) {
return 'array';
} else if (Buffer.isBuffer(val)) {
return 'buffer';
} else if(typeof val.constructor !== 'undefined' && val.constructor.name) {
} else if (typeof val.constructor !== 'undefined' && val.constructor.name) {
const isBuiltin = Object.values(module.exports.builtins).some(b => val instanceof b);
if (isBuiltin || val.constructor === Object) {
return bucket;
Expand Down

0 comments on commit ee6aecd

Please sign in to comment.