Description[es6] Fix prototype chain walk for instanceof.
When walking up the prototype chain during OrdinaryHasInstance, we first
check if the current prototype equals the expected one, and only
afterwards check the current prototype against null. That's obviously
wrong if we check something like Proxy, whose prototype is null.
R=yangguo@chromium.org
BUG=v8:5085
Committed: https://crrev.com/eb1c9e2723d1d371699c6251aa56fd52535927a6
Cr-Commit-Position: refs/heads/master@{#36840}
Patch Set 1 #Messages
Total messages: 8 (2 generated)
|