Open matanlurey opened 7 years ago
We probably should add a Proxy class (in Dart) in the JS package itself, and have some special handling of that type in DDC. It's a bit too special of a JS type to use the existing vanilla JS interop.
Hey @jmesserly we miss you at DartConf!
We probably should add a Proxy class (in Dart) in the JS package itself, and have some special handling of that type in DDC.
Yeah, that's what I figured. Not a priority, but once we are Dart2-ified it can go on the backlog.
I've been trying to play around with
Proxy
:It looks like though, DDC's type checks fail when trying to pretend a
Proxy
is actually the type that was passed into it. I'm not sure if I'm doing something silly or if this is just something I'll have to wait for DDC/Dart2JS to implement (i.e. force type success or something).