[SDK][Gardening] Fixes profiler_test broken in c4b7097e.

Test Profiler_ArrayAllocation used the non-existing List.empty()
constuctor.
This fix replaces it with the semantic equivalent List.filled(..).

TBR:bkonyi

Change-Id: I70913803a4d3585cb19a39375b14c1184f047644
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149160
Commit-Queue: Clement Skau <cskau@google.com>
Reviewed-by: Clement Skau <cskau@google.com>
This commit is contained in:
Clement Skau 2020-05-27 13:33:09 +00:00 committed by commit-bot@chromium.org
parent b95a1bd567
commit 205ba04c5e

View file

@ -937,7 +937,7 @@ ISOLATE_UNIT_TEST_CASE(Profiler_ArrayAllocation) {
DisableBackgroundCompilationScope dbcs;
const char* kScript =
"List foo() => List.filled(4, null);\n"
"List bar() => List.empty(growable: true);\n";
"List bar() => List.filled(0, null, growable: true);\n";
const Library& root_library = Library::Handle(LoadTestScript(kScript));
Isolate* isolate = thread->isolate();