mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
fix
This commit is contained in:
@@ -6,10 +6,18 @@
|
||||
|
||||
import {el, stringify, scrollIntoViewIfNeeded} from './domutils.js'
|
||||
|
||||
|
||||
// We test both for Object and globalThis.run_window.Object because objects may
|
||||
// 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
|
||||
|
||||
const isError = object =>
|
||||
object instanceof Error
|
||||
||
|
||||
object instanceof globalThis.run_window.Error
|
||||
|
||||
const isPromise = object =>
|
||||
|
||||
Reference in New Issue
Block a user