Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dart:js JsObject.jsify doesn't accept null #15665

Closed
devoncarew opened this issue Dec 16, 2013 · 1 comment
Closed

dart:js JsObject.jsify doesn't accept null #15665

devoncarew opened this issue Dec 16, 2013 · 1 comment
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)

Comments

@devoncarew
Copy link
Member

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);
  }
  ...
}

@anders-sandholm
Copy link
Contributor

Added Area-Library, Library-JS labels.

@kevmoo kevmoo added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed priority-unassigned labels Feb 29, 2016
@matanlurey matanlurey added the closed-obsolete Closed as the reported issue is no longer relevant label Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

4 participants