Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 42a834a

Browse files
committed
Revert "Revert "Started looking for the dart plugin registrant at runtime (#31418)" (#32162)"
This reverts commit ab6b671.
1 parent 940314d commit 42a834a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/dart_isolate.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,9 @@ bool DartIsolate::RunFromLibrary(std::optional<std::string> library_name,
706706
? tonic::ToDart(entrypoint.value().c_str())
707707
: tonic::ToDart("main");
708708

709-
InvokeDartPluginRegistrantIfAvailable(library_handle);
709+
if (!FindAndInvokeDartPluginRegistrant()) {
710+
InvokeDartPluginRegistrantIfAvailable(library_handle);
711+
}
710712

711713
auto user_entrypoint_function =
712714
::Dart_GetField(library_handle, entrypoint_handle);

0 commit comments

Comments
 (0)