You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some javascript libraries expose objects without prototypes created using Object.create(null). compare from caml_obj fails on these because it calls hasOwnProperty directly on the object instead of using Object.prototype.hasOwnProperty.call
This can be worked around if the foreign object can be converted to JSON and back but it'd be nice if this worked out of the box since there's an easy fix.
The text was updated successfully, but these errors were encountered:
Some javascript libraries expose objects without prototypes created using
Object.create(null)
.compare
from caml_obj fails on these because it callshasOwnProperty
directly on the object instead of usingObject.prototype.hasOwnProperty.call
Here's a very small reproduction:
This can be worked around if the foreign object can be converted to JSON and back but it'd be nice if this worked out of the box since there's an easy fix.
The text was updated successfully, but these errors were encountered: