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

Polymer app does not work after compilation to JS #16068

Closed
mraleph opened this issue Jan 13, 2014 · 7 comments
Closed

Polymer app does not work after compilation to JS #16068

mraleph opened this issue Jan 13, 2014 · 7 comments
Assignees

Comments

@mraleph
Copy link
Member

mraleph commented Jan 13, 2014

Unzip attach archive, pub get and then pub serve or pub build it, navigate to repro.html.

Observe the following error in the console:

TypeError: Cannot call method 'call$1' of undefined
    at ClickCounter.f$1 (http://localhost:8080/repro.html_bootstrap.dart.js:4050:21)
    at dart.J.f$1$x (http://localhost:8080/repro.html_bootstrap.dart.js:22988:39)
    at A.f$1 (http://localhost:8080/repro.html_bootstrap.dart.js:4101:16)
    at ClickCounter.enteredView$0 (http://localhost:8080/repro.html_bootstrap.dart.js:4054:15)
    at dart.J.enteredView$0$x (http://localhost:8080/repro.html_bootstrap.dart.js:22985:39)
    at _callEnteredView (http://localhost:8080/repro.html_bootstrap.dart.js:13060:14)
    at invokeClosure_closure0.call$0 (http://localhost:8080/repro.html_bootstrap.dart.js:3548:29)
    at _IsolateContext.eval$1 (http://localhost:8080/repro.html_bootstrap.dart.js:1321:23)
    at dart._callInIsolate (http://localhost:8080/repro.html_bootstrap.dart.js:1101:26)
    at invokeClosure (http://localhost:8080/repro.html_bootstrap.dart.js:2429:16)

Something seems to be wrong with the calling convention for the invocation through field of the polymer element.

Working sample should display ### !!! 0 !!! ### in bold.


Attachment:
dart2js-bug.zip (3.86 KB)

@DartBot
Copy link

DartBot commented Jan 15, 2014

This comment was originally written by dev...@futureperfect.info


I think this is the same issue as:

https://code.google.com/p/dart/issues/detail?id=15401

I am running into this often with function members of custom elements.

@floitschG
Copy link
Contributor

Yes. issue #15401 seems to be the same bug.

We have a reproducable test-case in this issue, so I will mark 15401 as duplicate of this one. If issue #15401 is not fixed by the same patch as this issue, we can "unduplicate".


Added Started label.

@floitschG
Copy link
Contributor

Issue #15401 has been merged into this issue.

@floitschG
Copy link
Contributor

Fixed in r32018.


Added Fixed label.

@floitschG
Copy link
Contributor

Had to revert.


Set owner to @floitschG.
Added Started label.

@floitschG
Copy link
Contributor

Landed a fixed version in r32073.


Added Fixed label.

@DartBot
Copy link

DartBot commented Jan 29, 2014

This comment was originally written by dev...@futureperfect.info


thanks!

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

No branches or pull requests

4 participants