diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 6063b1740..05006d837 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -268,6 +268,11 @@ function objectToString(o) { if (typeof o == typeof objectToString) { // special case this since the default is way, way too verbose return ''; + } else if (o && o.toString === undefined) { + // eeks, something unprintable. we'll have to guess, probably a module + return typeof o === 'object' && !(o instanceof Object) + ? '' + : ''; } else { return `${o}`; }