mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:59:47 +00:00
758cb462f5
Closes https://github.com/dart-lang/sdk/issues/47324 Erases static interop class types in favor of `BaseJavaScriptObject`. Types are erased everywhere except for constructors, whose invocations are instead wrapped with a cast. Constructor type erasure is avoided to ensure the AST is still type-valid. Factories with bodies have static stubs added instead, and tests are added for this change. Change-Id: I7231aaaf32d22bc6261adb672a602e8a9e6c86a9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215948 Reviewed-by: Sigmund Cherem <sigmund@google.com> Reviewed-by: Riley Porter <rileyporter@google.com> |
||
---|---|---|
.. | ||
lib | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
Shared kernel visitors checking for incorrect usage of @JS()
style interop.