Skip to content

Commit 420ef2e

Browse files
srujzsCommit Queue
authored andcommitted
[js_interop_unsafe] Update docs for []
This operator takes a Dart value but returns a JSAny?. CoreLibraryReviewExempt: Doc-only change. Change-Id: I67a004a7849f2c582efd479c2ccc2f36a07b4239 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/409480 Reviewed-by: Devon Carew <[email protected]> Commit-Queue: Devon Carew <[email protected]> Auto-Submit: Srujan Gaddam <[email protected]> Commit-Queue: Srujan Gaddam <[email protected]>
1 parent 9d822ed commit 420ef2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/lib/js_interop_unsafe/js_interop_unsafe.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extension JSObjectUnsafeUtilExtension on JSObject {
3939
external JSBoolean hasProperty(JSAny property);
4040

4141
/// Shorthand helper for [getProperty] to get the value of the property key
42-
/// [property] of this [JSObject], but takes and returns a Dart value.
42+
/// [property] of this [JSObject], but takes a Dart value.
4343
JSAny? operator [](String property) => getProperty(property.toJS);
4444

4545
/// The value of the property key [property] of this [JSObject].

0 commit comments

Comments
 (0)