Skip to content

Frog generates invalid JS with an assert() as the else clause #2072

Closed
@munificent

Description

@munificent

Compile this code with frog:

main() {
  if (true) print('ok'); else assert('unreachable');
}

And it generates:

function main() {
  if (true) print$("ok");
  else // :(
}

Metadata

Metadata

Assignees

Labels

closed-not-plannedClosed as we don't intend to take action on the reported issueweb-dart2js

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions