fix refactor value explorer

This commit is contained in:
Dmitry Vasilev
2023-07-31 23:32:34 +03:00
parent c006aae380
commit e79e8cd704
3 changed files with 12 additions and 6 deletions

View File

@@ -22,15 +22,13 @@ const isDate = object =>
const toJSON_safe = object => {
try {
return with_code_execution(() => {
return object.toJSON()
})
return object.toJSON()
} catch(e) {
return object
}
}
const displayed_entries = object => {
export const displayed_entries = object => {
if(object == null || typeof(object) != 'object') {
return []
} else if((object[Symbol.toStringTag]) == 'Module') {