Skip to content

Commit 2ab5130

Browse files
alexmarkovCommit Queue
authored and
Commit Queue
committed
[vm] Relax assertion for empty record type
TEST=co19/LanguageFeatures/Records/upper_and_lower_bounds_A04_t01 (Tested manualy by applying 4b6a8f3 and running "tools/test.py -n dartk-strong-linux-debug-x64 co19/LanguageFeatures/Records/upper_and_lower_bounds_A04_t01"). Issue: #49719 Change-Id: Ib5658ac776a75913e617095f8861baba25f13de3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/261800 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Ryan Macnak <[email protected]> Auto-Submit: Alexander Markov <[email protected]>
1 parent 604bf2f commit 2ab5130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/vm/object.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27111,7 +27111,7 @@ void RecordType::SetFieldTypeAt(intptr_t index,
2711127111
}
2711227112

2711327113
void RecordType::set_field_types(const Array& value) const {
27114-
ASSERT(!value.IsNull() && (value.Length() > 0));
27114+
ASSERT(!value.IsNull());
2711527115
untag()->set_field_types(value.ptr());
2711627116
}
2711727117

0 commit comments

Comments
 (0)