Skip to content

Commit 2e4512d

Browse files
committed
feat: improve non-stringifiable string representation
1 parent 9bf6bc7 commit 2e4512d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

safe-to-string.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module.exports = function (value) {
77
if (value && isCallable(value.toString)) return value.toString();
88
return String(value);
99
} catch (e) {
10-
return "<non-stringifiable value>";
10+
return "[Non-stringifiable value]";
1111
}
1212
};

0 commit comments

Comments
 (0)