From c2c14c0829b34776de800250e5cc32ceb56aa8fb Mon Sep 17 00:00:00 2001 From: Dmitry Vasilev Date: Tue, 17 Jan 2023 12:34:24 +0800 Subject: [PATCH] fix --- src/editor/value_explorer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/value_explorer.js b/src/editor/value_explorer.js index c83116d..ba64201 100644 --- a/src/editor/value_explorer.js +++ b/src/editor/value_explorer.js @@ -11,9 +11,9 @@ import {el, stringify, scrollIntoViewIfNeeded} from './domutils.js' // come both from run_window and current window (where they are created in // metacircular interpreter const has_custom_toString = object => - object.toString != globalThis.run_window.Object.prototype.toString - && - object.toString != Object.prototype.toString + object.toString != null + && object.toString != globalThis.run_window.Object.prototype.toString + && object.toString != Object.prototype.toString const isError = object => object instanceof Error