From 99d7f5d740e3c1f46601dc4f161a941e180ff7b4 Mon Sep 17 00:00:00 2001 From: Jelle De Loecker Date: Sun, 21 Apr 2024 16:11:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Don't=20mess=20with=20Error=20re?= =?UTF-8?q?presentation=20in=20devtools?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/devtools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devtools.js b/lib/devtools.js index 109e44c..5606f89 100644 --- a/lib/devtools.js +++ b/lib/devtools.js @@ -276,7 +276,7 @@ window.devtoolsFormatters = [{ } // Also ignore the builtin types - if (arg instanceof Map || arg instanceof Set || Array.isArray(arg)) { + if (arg instanceof Map || arg instanceof Set || Array.isArray(arg) || arg instanceof Error) { return null; }