Skip to content

Commit 008a3fe

Browse files
committed
Code review
1 parent 374480f commit 008a3fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sdk/lib/js_interop/js_interop.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,10 @@ extension type JSSymbol._(JSSymbolRepType _jsSymbol) implements JSAny {
541541
/// If [description] is provided, it's used for debugging but not to access
542542
/// the symbol itself.
543543
@Since('3.11')
544-
JSSymbol([String? description]) =>
545-
_jsSymbol = description == null ? _constructSymbol() : _constructSymbol(description);
544+
JSSymbol([String? description])
545+
: _jsSymbol = description == null
546+
? _constructSymbol()
547+
: _constructSymbol(description);
546548

547549
/// Searches for an existing symbol in a runtime-wide symbol registry with the
548550
/// given key and returns it if found.
@@ -551,7 +553,7 @@ extension type JSSymbol._(JSSymbolRepType _jsSymbol) implements JSAny {
551553
/// registry, and returns it.
552554
@Since('3.11')
553555
@JS('for')
554-
external static JSSymbol forKey(String key;
556+
external static JSSymbol forKey(String key);
555557

556558
/// `Symbol.asyncDispose` from the ECMAScript [explicit resource management]
557559
/// feature.

0 commit comments

Comments
 (0)