Skip to content

Commit 67169ad

Browse files
verwaestV8 LUCI CQ
authored andcommitted
Merged: [runtime] Empty scope info + not compiled = no outer
Bug: 354758515 (cherry picked from commit 636350e) Change-Id: I33900b6aadd92da18a24a16b1a3c69fa02860fa5 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5784823 Reviewed-by: Shu-yu Guo <[email protected]> Commit-Queue: Deepti Gandluri <[email protected]> Cr-Commit-Position: refs/branch-heads/12.8@{#26} Cr-Branched-From: 70cbb39-refs/heads/12.8.374@{#1} Cr-Branched-From: 451b63e-refs/heads/main@{#95151}
1 parent 90fcd7d commit 67169ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)