Can't .toJS
a Future<Never>
function.
#56369
Labels
area-web
Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop.
type-question
A question about expected behavior or functionality
web-js-interop
Issues that impact all js interop
We've been porting some old test code to a newer style, and I was trying to "mock" a function that ends up throwing:
However the compiler complains that it doesn't like
Never
:So I need to end up doing:
Is there a more graceful way to handle something like this?
The text was updated successfully, but these errors were encountered: