Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LazyNode comparison can return incorrect results when comparing an em…
…pty value https://bugs.webkit.org/show_bug.cgi?id=145421 Reviewed by Geoffrey Garen. When comparing a LazyNode to another, we compare the value pointers if we have one, and otherwise compare the nodes. We should be comparing value pointers if the other LazyNode has one as well, otherwise we risk an incoherency when we are a empty LazyNode being compared to a FrozenValue without node. Note that this is not a problem in any other case because if we don't have a FrozenValue and we are not an empty LazyNode, we are a non-constant node, and comparing the node pointers is correct. * dfg/DFGLazyNode.h: (JSC::DFG::LazyNode::operator==): Canonical link: https://commits.webkit.org/163436@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information