This commit is contained in:
Dmitry Vasilev
2023-01-17 12:34:24 +08:00
parent 5041226776
commit c2c14c0829

View File

@@ -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