deps: cherry-pick 2aa070be from V8 upstream
Original commit message:
InstanceOfStub incorrectly interprets the hole as a prototype.
Repair this to match what the runtime correctly does, by first
checking if the function is a constructor before we access the
prototype.
R=verwaest@chromium.org
BUG=
Committed: https://crrev.com/2aa070be4fd2960df98905b254f12ed801ef26cd
Cr-Commit-Position: refs/heads/master@{#34863}
This fixes the behavior of instanceof when the second parameter is not a
constructor.
Fixes: https://github.com/nodejs/node/issues/7592
PR-URL: https://github.com/nodejs/node/pull/7638
Reviewed-By:
Anna Henningsen <anna@addaleax.net>
Reviewed-By:
Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By:
Ali Ijaz Sheikh <ofrobots@google.com>
parent
71f84b5e
Please register or sign in to comment