[dart2js] Fix #50755

Bug: 50755
Change-Id: Icfd9349e2373c995255d3651c1f0c8f26c462cc6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276203
Auto-Submit: Stephen Adams <sra@google.com>
Reviewed-by: Sigmund Cherem <sigmund@google.com>
Commit-Queue: Sigmund Cherem <sigmund@google.com>
This commit is contained in:
Stephen Adams 2022-12-17 03:27:58 +00:00 committed by Commit Queue
parent caa14a5eea
commit fdeb41d111

View file

@ -403,7 +403,7 @@ class RecordType extends DartType {
final List<DartType> fields;
static late final _emptyRecordType =
RecordType._(RecordShape(0, const []), const []);
RecordType._allocate(RecordShape(0, const []), const []);
RecordType._allocate(this.shape, this.fields);