You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
Passing a Dart Type to interop lends a WrappedType instead of the real class #633
So when passing a type to an interop call like in new JsObject.fromBrowserObject(h.document).callMethod("registerElement",['my-tag', x]); the native call receives a WrappedType instead of the actual Dart translated JS class.
Trying to "jsify" in the hope that the type will get unrwapped will ends up in an exception.
There should be a way to pass the actual class to native calls.
Any reference to a dart type like in :
gets translated in
So when passing a type to an interop call like in
new JsObject.fromBrowserObject(h.document).callMethod("registerElement",['my-tag', x]);the native call receives aWrappedTypeinstead of the actual Dart translated JS class.Trying to "jsify" in the hope that the type will get unrwapped will ends up in an exception.
There should be a way to pass the actual class to native calls.