-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Dart2JS: How to avoid interceptors for JS interop? #35142
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
Comments
There is a lot here than needs to be fixed via #35084. As things currently stand, js-interop on dart2js has some issues when the object is also a 'native' type from dart:html etc. Any dynamic (interceptor) lookup will find the dart:html definition. Since You would get A third problem you will have is that in DDC (and dart2js without command line arguments suppressing checks) |
Yeah. I could create a set of top-level setters and getters. I'll try that!
Do I need to write specifically that? Does
Ah. I was trying to avoid returning |
Ping @rakudrama 🏓 |
The current native analysis ignores type parameters, so |
Thanks! That's enough information for me! Closing. |
I have code that ~mostly looks like this:
This fails, mostly mysteriously, with a
NoSuchMethodError
. While debugging the Dart2JS, I realized that this is going through an Interceptor. The code that is emitted looks something like this:Questions:
... but I can't tell why it doesn't try to do that. Any pointers? I can point to my internal work.
self.self
in this case?The text was updated successfully, but these errors were encountered: