Closed
Description
The following test prints:
Hello, World!
Hello, World!
Hello, World!
[hello]
in the VM and dart2js, but prints nothing DDC.
import 'dart:async';
Stream<String> testStream(String test) async* {
try {
await testFunction();
yield test;
} catch (e) {
yield test;
print('Hello, World!');
print('Hello, World!');
print('Hello, World!');
}
}
Future<String> testFunction() async {
await testFunctio2();
return "";
}
Future<String> testFunctio2() async {
throw Exception("test");
}
void main() async {
var stream = testStream("hello");
print(await stream.toList());
}