From 0d52e7f0b33e399b7cd8672f0c99d1fbf1efcfa1 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Sat, 23 Nov 2024 07:57:08 +0530 Subject: [PATCH] refactor: do not display error prototype properties --- src/templates/error_cause/main.ts | 3 +++ src/templates/error_stack/main.ts | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/templates/error_cause/main.ts b/src/templates/error_cause/main.ts index 90ecc6e..e3b17ed 100644 --- a/src/templates/error_cause/main.ts +++ b/src/templates/error_cause/main.ts @@ -44,6 +44,9 @@ export class ErrorCause extends BaseComponent { ${dump(props.error.cause, { cspNonce: props.cspNonce, styles: themes.cssVariables, + inspectObjectPrototype: false, + inspectStaticMembers: false, + inspectArrayPrototype: false, })} diff --git a/src/templates/error_stack/main.ts b/src/templates/error_stack/main.ts index d91cfb2..a13e635 100644 --- a/src/templates/error_stack/main.ts +++ b/src/templates/error_stack/main.ts @@ -220,6 +220,9 @@ export class ErrorStack extends BaseComponent { styles: themes.cssVariables, expand: true, cspNonce: props.cspNonce, + inspectObjectPrototype: false, + inspectStaticMembers: false, + inspectArrayPrototype: false, })} @@ -239,7 +242,6 @@ export class ErrorStack extends BaseComponent { inspectObjectPrototype: false, inspectStaticMembers: false, inspectArrayPrototype: false, - collapse: ['ClientRequest'], })}` }