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

dartdoc crashes if a method uses short-hand syntax and is throwing an exception #6086

Closed
DartBot opened this issue Oct 19, 2012 · 3 comments
Closed
Assignees
Labels
closed-duplicate Closed in favor of an existing report web-dart2js

Comments

@DartBot
Copy link

DartBot commented Oct 19, 2012

This issue was originally filed by ppater...@gmail.com


The following class will not work in dartdoc - it crashes with the attached traceback (Unhandled exception: expected an expression, but got 'throw')

// Will not work with dartdoc
class FixedSize {
   increase() => throw new FixedSizeError('Cannot increase a fixed size');
}

This does work

// Will work with dartdoc
class FixedSize {
   increase() {
       throw new FixedSizeError('Cannot increase a fixed size');
   }
}


Attachment:
traceback.txt (4.45 KB)

@dgrove
Copy link
Contributor

dgrove commented Oct 23, 2012

Set owner to amouravski@google.com.
Added Area-DartDoc, Triaged labels.

@DartBot
Copy link
Author

DartBot commented Dec 19, 2012

This comment was originally written by amouravski@google.com


Late dart2js error.


Set owner to @johnniwinther.
Removed Area-DartDoc label.
Added Area-Dart2JS, Accepted labels.

@johnniwinther
Copy link
Member

This is caused by throw as expressions not currently being implemented.


Added Duplicate label.
Marked as being merged into #4874.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report web-dart2js
Projects
None yet
Development

No branches or pull requests

3 participants