You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surprisingly this test passes in normal dartkp mode which it should not:
voidmain(List<String> arguments, Object message) async {
if (arguments.length ==1) {
assert(arguments[0] =='helper');
awaitrunHelper(message asSendPort);
} else {
awaitrunTest();
}
}
Future<void> runTest() async {
final port =ReceivePort();
awaitIsolate.spawnUri(
Uri.parse('weak_reference_message_2_test.dart'),
['helper'],
port.sendPort,
);
final message =await port.first;
...
}
It tries to Isolate.spawnUri() from weak_reference_message_2_test.dart. This is not supported in AOT mode.
It happens to be that the implementation completely ignores the weak_reference_message_2_test.dart argument and uses the same AOT snapshot as the main app is launched from. So the test passes by coincidence.
There are new test failures on 828dcd0
are failing on configurations
The text was updated successfully, but these errors were encountered: