From 7717672b97375b8df044d16c2e6d30372d5ca74a Mon Sep 17 00:00:00 2001 From: Michael Wynholds Date: Fri, 10 Jul 2020 08:28:22 -0700 Subject: [PATCH] Symbol.for somehow, sometimes goes missing --- objectid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objectid.js b/objectid.js index fea220f..5afe31b 100644 --- a/objectid.js +++ b/objectid.js @@ -211,7 +211,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.