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

Commit 9785d88

Browse files
author
Emmanuel Garcia
committed
Clean up
1 parent 53c0304 commit 9785d88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

runtime/dart_isolate.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -767,12 +767,12 @@ 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);
771-
auto user_entrypoint_function =
772-
::Dart_GetField(library_handle, entrypoint_handle);
773770

774771
InvokeDartPluginRegistrantIfAvailable(library_handle);
775772

773+
auto user_entrypoint_function =
774+
::Dart_GetField(library_handle, entrypoint_handle);
775+
auto entrypoint_args = tonic::ToDart(args);
776776
if (!InvokeMainEntrypoint(user_entrypoint_function, entrypoint_args)) {
777777
return false;
778778
}

0 commit comments

Comments
 (0)