We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef135ee commit c91c781Copy full SHA for c91c781
chromium/v8/src/maglev/maglev-graph-builder.cc
@@ -7428,7 +7428,9 @@ MaglevGraphBuilder::InferHasInPrototypeChain(
7428
// might be a different object each time, so it's much simpler to include
7429
// {prototype}. That does, however, mean that we must check {prototype}'s
7430
// map stability.
7431
- if (!prototype.map(broker()).is_stable()) return kMayBeInPrototypeChain;
+ if (!prototype.IsJSObject() || !prototype.map(broker()).is_stable()) {
7432
+ return kMayBeInPrototypeChain;
7433
+ }
7434
last_prototype = prototype.AsJSObject();
7435
}
7436
broker()->dependencies()->DependOnStablePrototypeChains(
0 commit comments