Skip to content

Conversation

@sgrekhov
Copy link
Contributor

@sgrekhov sgrekhov commented Jul 4, 2025

No description provided.

@sgrekhov sgrekhov requested review from eernstg and srujzs July 4, 2025 14:56
Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I think a couple of extra things could be covered (perhaps that's already planned for Part 2 and on?):

  • Invoking createJSInteropWrapper with a type argument that differs from the run time type of the actual argument (presumably, this would just work, it's OK that the Dart object is a proper subtype of the required type). Also, it's a compile time error (already in the CFE, presumably) if the actual type argument isn't a supertype of the type of the actual argument.
  • Using @JSExport on one or more members (in a class that has @JSExport itself, and in a class that doesn't have it).

@sgrekhov
Copy link
Contributor Author

sgrekhov commented Jul 7, 2025

Invoking createJSInteropWrapper with a type argument....

It'll be part of tests for createJSInteropWrapper function.

Using @JSExport on one or more members

It'll be in the Part 2.

Copy link
Member

@eernstg eernstg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Awaiting further comments.

Copy link

@srujzs srujzs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@eernstg eernstg merged commit 1b90401 into dart-lang:master Jul 8, 2025
2 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jul 11, 2025
2025-07-10 sgrekhov22@gmail.com dart-lang/co19#3180. Add JSExport tests. Part 3. (dart-lang/co19#3252)
2025-07-09 sgrekhov22@gmail.com dart-lang/co19#3180. Add JSExport tests. Part 2. (dart-lang/co19#3251)
2025-07-08 sgrekhov22@gmail.com dart-lang/co19#3180. Add additional `NullRejectionException` test (dart-lang/co19#3249)
2025-07-08 sgrekhov22@gmail.com dart-lang/co19#3180. Add JSExport tests. Part 1. (dart-lang/co19#3250)
2025-07-04 sgrekhov22@gmail.com Fixes dart-lang/co19#3245. Fix int to double conversion in jsNumber_t01.dart (dart-lang/co19#3248)
2025-07-04 sgrekhov22@gmail.com dart-lang/co19#3180. Add `NullRejectionException` tests (dart-lang/co19#3247)

Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,dart2js-minified-linux-d8-try
Change-Id: I4b44a79d210d19153a464a9eadb86996d2876cf6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/439840
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants