Can return value of .jsify()
be non-nullable if receiver is non-nullable?
#55463
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
type-question
A question about expected behavior or functionality
web-js-interop
Issues that impact all js interop
I've noticed that you always need a
!
assertion after.jsify()
to get a JSAny:Since extension methods on overlapping types (one more specific than another) work great in Dart, it seems like you could add this to
dart:js_interop
so that the result of.jsify()
is non-nullable if the receiver is non-nullable:Am I missing a case where the result of
.jsify()
would be null for a non-null receiver?The text was updated successfully, but these errors were encountered: