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

Commit 7562dc3

Browse files
author
Emmanuel Garcia
committed
Clean up
1 parent 53c0304 commit 7562dc3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/dart_isolate.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,11 +767,13 @@ bool DartIsolate::RunFromLibrary(std::optional<std::string> library_name,
767767
auto entrypoint_handle = entrypoint.has_value() && !entrypoint.value().empty()
768768
? tonic::ToDart(entrypoint.value().c_str())
769769
: tonic::ToDart("main");
770-
auto entrypoint_args = tonic::ToDart(args);
770+
771+
InvokeDartPluginRegistrantIfAvailable(library_handle);
772+
771773
auto user_entrypoint_function =
772774
::Dart_GetField(library_handle, entrypoint_handle);
773775

774-
InvokeDartPluginRegistrantIfAvailable(library_handle);
776+
auto entrypoint_args = tonic::ToDart(args);
775777

776778
if (!InvokeMainEntrypoint(user_entrypoint_function, entrypoint_args)) {
777779
return false;

0 commit comments

Comments
 (0)