Commit 18b37c7f authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Don't lookup private symbols on prototypes.

R=yangguo@chromium.org
BUG=v8:4470
LOG=n

Review URL: https://codereview.chromium.org/1427583008

Cr-Commit-Position: refs/heads/master@{#31686}
parent 5820adf2
......@@ -449,6 +449,9 @@ bool JSNativeContextSpecialization::ComputePropertyAccessInfo(
return false;
}
// Don't lookup private symbols on the prototype chain.
if (name->IsPrivate()) return false;
// Walk up the prototype chain.
if (!map->prototype()->IsJSObject()) {
// Perform the implicit ToObject for primitives here.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment