Commit 71da32fd authored by Jan de Mooij's avatar Jan de Mooij
Browse files

Bug 1685925 - Only tryAttachTypedArrayLength for specialized stubs. r=iain, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D101344
parent a74ee7c4
......@@ -1748,6 +1748,10 @@ AttachDecision GetPropIRGenerator::tryAttachTypedArrayLength(HandleObject obj,
return AttachDecision::NoAction;
}
if (mode_ != ICState::Mode::Specialized) {
return AttachDecision::NoAction;
}
// Receiver should be the object.
if (isSuper()) {
return AttachDecision::NoAction;
......
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