[gardening] Fix vm/cc/Service_PersistentHandles test

This test started failing after clang roll in commit
0e2d2e3c93

Closes https://github.com/dart-lang/sdk/issues/50249

TEST=Fixes vm/cc/Service_PersistentHandles

Change-Id: Ia8bf637caf452229f9a1b750229a829f856c9c72
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/264861
Reviewed-by: Slava Egorov <vegorov@google.com>
Commit-Queue: Martin Kustermann <kustermann@google.com>
This commit is contained in:
Martin Kustermann 2022-10-19 13:24:56 +00:00 committed by Commit Queue
parent 0b26f4816b
commit 4666dac4b2

View file

@ -4904,7 +4904,7 @@ static void GetPersistentHandles(Thread* thread, JSONStream* js) {
JSONArray persistent_handles(&obj, "persistentHandles");
api_state->RunWithLockedPersistentHandles(
[&](PersistentHandles& handles) {
PersistentHandleVisitor<FinalizablePersistentHandle> visitor(
PersistentHandleVisitor<PersistentHandle> visitor(
thread, &persistent_handles);
handles.Visit(&visitor);
});