mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 08:44:27 +00:00
[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:
parent
b95a1bd567
commit
205ba04c5e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue