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
|
||||
|
||||
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') {
|
||||
|
||||
Reference in New Issue
Block a user