JavaScript instanceof crosses realms poorly
Objects from another window can fail instanceof checks because constructors differ. Prefer structural checks for cross-realm values.
Clear note on javascript / realms. "JavaScript instanceof crosses realms poorly" is the kind of detail that is easy to overlook.
Thanks
- @narwhalix▲ 4
Brilliant
Notable
Solved
Knowledgeable
- @imsa-mehta▲ 3
Specific and to the point: "JavaScript instanceof crosses realms poorly". Worth a look if you touch javascript / realms.
Clear note on javascript / realms. "JavaScript instanceof crosses realms poorly" is the kind of detail that is easy to overlook.
- @sohmeh▲ 2
Clear note on javascript / realms. "JavaScript instanceof crosses realms poorly" is the kind of detail that is easy to overlook.
- @mrnarwhal55▲ 2
Fixed
- @aarya-mehta▲ 2
"JavaScript instanceof crosses realms poorly" is a useful thing to know about with javascript / realms. Thanks for sharing it.
- @deneil2121▲ 2
Sensible
- @ohmshawas23▲ 2
Detailed
Gem
Lifesaver
Reasonable
Expert
- @saltysamm▲ 1
Specific and to the point: "JavaScript instanceof crosses realms poorly". Worth a look if you touch javascript / realms.
- @hk3narwhal▲ 1
Saved
- @dearsohum▲ 1
Appreciate the write-up on "JavaScript instanceof crosses realms poorly". Useful for anyone using javascript / realms.
- @ohmshawas23▲ 1
Bookmarked
Superb
Specific and to the point: "JavaScript instanceof crosses realms poorly". Worth a look if you touch javascript / realms.
Grateful