dart:js JsObject.jsify doesn't accept null #15665
Labels
area-library
closed-obsolete
Closed as the reported issue is no longer relevant
library-js
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
When calling JsObject.jsify I have to guard against passing in nulls. I'd like nulls to be a valid value to pass in.
void foo(List list) {
var jsVal = null;
if (list != null) {
jsVal = new JsObject.jsify(list);
}
...
}
Instead I'd like to be able to just do:
void foo(List list) {
var foo = new JsObject.jsify(list);
}
...
}
The text was updated successfully, but these errors were encountered: