From 93dc56c08dbe5d46dab3edb5f7842dc16af393e9 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Mon, 31 Jul 2023 23:48:34 +0300 Subject: [PATCH] fix refactor value explorer --- src/value_explorer_utils.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/value_explorer_utils.js b/src/value_explorer_utils.js index aa27615..9df938d 100644 --- a/src/value_explorer_utils.js +++ b/src/value_explorer_utils.js @@ -20,13 +20,14 @@ const isDate = object => || object instanceof globalThis.app_window.Date.__original -const toJSON_safe = object => { +// Workaround try/catch is not implemented currently +const toJSON_safe = new Function('object', ` try { return object.toJSON() } catch(e) { return object } -} +`) export const displayed_entries = object => { if(object == null || typeof(object) != 'object') {