mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix refactor value explorer
This commit is contained in:
@@ -20,13 +20,14 @@ const isDate = object =>
|
|||||||
||
|
||
|
||||||
object instanceof globalThis.app_window.Date.__original
|
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 {
|
try {
|
||||||
return object.toJSON()
|
return object.toJSON()
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
return object
|
return object
|
||||||
}
|
}
|
||||||
}
|
`)
|
||||||
|
|
||||||
export const displayed_entries = object => {
|
export const displayed_entries = object => {
|
||||||
if(object == null || typeof(object) != 'object') {
|
if(object == null || typeof(object) != 'object') {
|
||||||
|
|||||||
Reference in New Issue
Block a user