Skip to content

Commit 0a57671

Browse files
alexmarkovcommit-bot@chromium.org
authored andcommitted
[vm/nnbd] Use legacy types to create lists in Dart_NewListOf
In order to be backwards-compatible existing Dart API should create lists using legacy types (instead of lists of non-nullable types). Issue: #40176 Change-Id: Ie5460b41b2c5e9ecfb124bce1ab43fd466930ea0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/135531 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Alexander Markov <[email protected]>
1 parent 5c332be commit 0a57671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/vm/dart_api_impl.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,9 +2827,9 @@ static RawTypeArguments* TypeArgumentsForElementType(
28272827
case Dart_CoreType_Dynamic:
28282828
return TypeArguments::null();
28292829
case Dart_CoreType_Int:
2830-
return store->type_argument_int();
2830+
return store->type_argument_legacy_int();
28312831
case Dart_CoreType_String:
2832-
return store->type_argument_string();
2832+
return store->type_argument_legacy_string();
28332833
}
28342834
UNREACHABLE();
28352835
return NULL;

0 commit comments

Comments
 (0)