mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1029653 - Remove bogus heavyweight assertion in computeScopeChain. (r=jandem)
This commit is contained in:
parent
417d18b8ee
commit
add1128f7a
@ -1899,11 +1899,11 @@ InlineFrameIterator::computeScopeChain(Value scopeChainValue) const
|
||||
if (scopeChainValue.isObject())
|
||||
return &scopeChainValue.toObject();
|
||||
|
||||
if (isFunctionFrame()) {
|
||||
// Heavyweight functions should always have a scope chain.
|
||||
MOZ_ASSERT(!callee()->isHeavyweight());
|
||||
// Note we can hit this case even for heavyweight functions, in case we
|
||||
// are walking the frame during the function prologue, before the scope
|
||||
// chain has been initialized.
|
||||
if (isFunctionFrame())
|
||||
return callee()->environment();
|
||||
}
|
||||
|
||||
// Ion does not handle scripts that are not compile-and-go.
|
||||
MOZ_ASSERT(!script()->isForEval());
|
||||
|
Loading…
Reference in New Issue
Block a user