Skip to content

js-interop:anonymous annotation with missing external factory constructor #25241

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

Closed
cjkao opened this issue Dec 12, 2015 · 1 comment
Closed

Comments

@cjkao
Copy link

cjkao commented Dec 12, 2015

Describe the issue you're seeing
anonymous annotation without external factory constructor would lead dart2js crash

NoSuchMethodError: method not found: 'orderedForEachParameter'
Receiver: null
Arguments: [Closure: (ParameterElement) => dynamic]
dart:core                                                                 Object.noSuchMethod

Does it happen in Dartium or when compiled to JavaScript?
dart2js

  • Dart SDK version: 1.13.0
  • pkg/js version: 0.6.0

Failing code:

// or a link to a GitHub repo or gist.github.com
@JS()
@anonymous
class PolarOptions {
  bool scaleShowLabelBackdrop; 
}
void main() {
 new PolarOptions();
}
@sigmundch
Copy link
Member

Thanks for reporting - thankfully we already have a fix for this (see #24974). The fix is already available in the Dart dev channel (1.14). There is a pending request to merge the fix into the stable channel too (you can subscribe for updates at #25068).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants