This commit is contained in:
Dmitry Vasilev
2023-07-13 16:40:55 +03:00
parent 9a32d96511
commit f3daf986b1

View File

@@ -12,7 +12,7 @@ import {with_code_execution} from '../index.js'
// come both from app_window and current window (where they are created in
// metacircular interpreter
const has_custom_toString = object =>
object.toString != null
typeof(object.toString) == 'function'
&& object.toString != globalThis.app_window.Object.prototype.toString
&& object.toString != Object.prototype.toString