Srujan Gaddam
Srujan Gaddam
Thanks for filing! Instead of `dart:js`, prefer `package:js` and `js_util` to workaround this. See https://github.com/dart-lang/sdk/blob/main/sdk/lib/html/doc/WORKAROUNDS.md for details on how to use interop to workaround this.
The `JS` foreign function you seem to be trying to use (`JS('Document', '#.document', this)`) is not meant for end users. It's only meant for internal libraries as it's quite powerful,...
The `js_util` case was a typo, it should be `js_util.getProperty(iframeForPrint.contentWindow, 'document');` as you note. Does it return `null` because the value is actually `null`, or does it return `null`, because...
It makes sense that reloading `main` doesn't work while reloading `web_usb` does since `void Function(JavaScriptObject)
Late response to this but I've been working on a similar bug on modular compilation and erasure that I believe should fix this. The fix should be to do a...
Yup, it has landed: https://github.com/dart-lang/sdk/commit/61abaeda3f84e6d45c4a70689b08b798713bc5c1 A dev version should be available in the next few hours. Flutter rolls might take a little while (I believe they're on the cadence of...
Thanks for trying this! I fear you're right after trying this locally as well. :( We'll likely need to pipe this lower into DDC somewhere where we can do a...
Yeah, that should work since that's a Dart class and we're not doing any transformations there. It is a bit cumbersome though, which is unfortunate. I think that breaks because...
> There is almost no reason that I can think of for implementing Iterable other than to allow the object to be used as an Iterable. Yeah we talked about...
If the concern is around the call site looking too similar to OO overriding, can we imagine a lint telling users to explicitly cast when they're using a supertype that...