Skip to content

Conversation

@sgrekhov
Copy link
Contributor

No description provided.

/// @assertion Object? dartify()
/// Converts a JavaScript value to the Dart equivalent if possible.
///
/// Effectively the inverse of `NullableObjectUtilExtension.jsify`, `dartify`
Copy link

Choose a reason for hiding this comment

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

FYI - the documentation here has been updated in the last few months to specify that certain conversions are undefined.

@sgrekhov
Copy link
Contributor Author

@srujzs thank you! The tests updated according to the new description.

  • Description updated
  • Removed the tests checking conversion of JSExportedDartFunction, JSPromise and JSBoxedDartObject
  • Added tests for JSObject and DataView

PTAL

@sgrekhov sgrekhov requested a review from srujzs July 22, 2025 08:16
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.

Thanks!

@srujzs srujzs merged commit 84d1f9a into dart-lang:master Jul 22, 2025
2 checks passed
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Jul 28, 2025
2025-07-24 sgrekhov22@gmail.com dart-lang/co19#3180. Add `instanceof` and `instanceOfString` tests (dart-lang/co19#3260)
2025-07-22 sgrekhov22@gmail.com dart-lang/co19#3180. Add more tests for `@anonymous` annotation (dart-lang/co19#3259)
2025-07-22 sgrekhov22@gmail.com dart-lang/co19#3180. Add `@staticInterop` tests. Part 2. (dart-lang/co19#3257)
2025-07-22 sgrekhov22@gmail.com dart-lang/co19#3180. Add tests for `dartify()`. (dart-lang/co19#3258)

Cq-Include-Trybots: luci.dart.try:analyzer-linux-release-try,dart2js-minified-linux-d8-try
Change-Id: Ia8539002298999a01ce8999aeee4368201219ed5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/442180
Reviewed-by: Erik Ernst <eernst@google.com>
Reviewed-by: Alexander Thomas <athom@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.

2 participants