We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed9ebac commit 0404dedCopy full SHA for 0404ded
src/adapter/templates/getStringyProps.ts
@@ -40,7 +40,14 @@ export const getStringyProps = templateFunction(function(
40
return out;
41
}
42
43
- for (const [key, value] of Object.entries(this)) {
+ for (const key of Object.keys(this)) {
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
+ let value: any;
46
+ try {
47
+ value = this[key];
48
+ } catch (e) {
49
+ continue;
50
+ }
51
if (customToString) {
52
try {
53
const repr = customToString.call(value, defaultPlaceholder);
0 commit comments