bwrrp / slimdom.js

Fast, tiny, standards-compliant XML DOM implementation for node and the browser
MIT License
30 stars 8 forks source link

Work around Safari returning null from deref #139

Closed bwrrp closed 2 years ago

bwrrp commented 2 years ago

Apparently Safari / Webkit can return null from WeakRef#deref, even though the spec specifies either returning the object or undefined. This adds a work-around.

DrRataplan commented 2 years ago

LGTM. Is this already reported to the webkit bugtracker?

bwrrp commented 2 years ago

Just reported as https://bugs.webkit.org/show_bug.cgi?id=235880