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

Commit fb0502a

Browse files
author
Emmanuel Garcia
committed
Debug test
1 parent 05633e8 commit fb0502a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

runtime/dart_isolate.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,9 @@ bool DartIsolate::RunFromLibrary(std::optional<std::string> library_name,
742742

743743
if (Dart_IsError(plugin_registrant_function)) {
744744
plugin_registrant_function = Dart_Null();
745+
FML_DLOG(ERROR) << " plugin_registrant_function IS NULL ";
746+
} else {
747+
FML_DLOG(ERROR) << " plugin_registrant_function IS NOT NULL ";
745748
}
746749

747750
if (!InvokeMainEntrypoint(user_entrypoint_function,

runtime/fixtures/runtime_test.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ import 'dart:ui';
1010

1111
import 'split_lib_test.dart' deferred as splitlib;
1212

13-
// ignore: unused_element
14-
void _registerPlugins() {
13+
@pragma('vm:entry-point')
14+
void _registerPlugins() { // ignore: unused_element
1515
try {
16+
print('_registerPlugins');
1617
passMessageForDartRegistrantTest('_registerPlugins');
18+
print('_registerPlugins 2');
1719
} catch(_) {}
1820
}
1921

2022
void main() {
2123
try {
24+
print('main');
2225
passMessageForDartRegistrantTest('main');
26+
print('main 2');
2327
} catch(_) {}
2428
}
2529

0 commit comments

Comments
 (0)