Skip to content

Commit 636350e

Browse files
verwaestV8 LUCI CQ
authored andcommitted
[runtime] Empty scope info + not compiled = no outer
Bug: 354758515 Change-Id: I77792aa1cb2a054c39e282cfaf3f08470ce2a4de Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5730003 Commit-Queue: Toon Verwaest <[email protected]> Commit-Queue: Leszek Swirski <[email protected]> Auto-Submit: Toon Verwaest <[email protected]> Reviewed-by: Leszek Swirski <[email protected]> Cr-Commit-Position: refs/heads/main@{#95190}
1 parent 266a3eb commit 636350e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/objects/shared-function-info-inl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,7 @@ bool SharedFunctionInfo::HasOuterScopeInfo() const {
615615
Tagged<ScopeInfo> outer_info;
616616
Tagged<ScopeInfo> info = scope_info(kAcquireLoad);
617617
if (info->IsEmpty()) {
618+
if (is_compiled()) return false;
618619
if (!IsScopeInfo(outer_scope_info())) return false;
619620
outer_info = Cast<ScopeInfo>(outer_scope_info());
620621
} else {

0 commit comments

Comments
 (0)