Skip to content

Dart2js calls method on undefined in checked mode. #3857

Closed
@lrhn

Description

@lrhn

The following code generates a call to .toString$0() on an undefined value.

Object foo() => null;
class D{}
main() {
  var on = foo();
  D od = on;
  od.toString();
}

Metadata

Metadata

Assignees

Labels

P1A high priority bug; for example, a single project is unusable or has many test failuresweb-dart2js

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions