Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/web_ui/lib/src/engine/dom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3763,9 +3763,8 @@ bool get browserSupportsCreateImageBitmap =>
!isChrome110OrOlder &&
!debugDisableCreateImageBitmapSupport;

@JS()
@staticInterop
extension JSArrayExtension on JSArray<JSAny?> {
external void push(JSAny value);
external JSNumber get length;
// TODO(srujzs): Delete this when we add `JSArray.length` in the SDK.
external int get length;
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ void doTests() {
HotRestartCacheHandler();

expect(_jsHotRestartStore, isNotNull);
// For dart2wasm, we have to check the length this way.
expect(_jsHotRestartStore!.length, 0.toJS);
expect(_jsHotRestartStore!.length, 0);
});
});

Expand Down Expand Up @@ -94,7 +93,7 @@ void doTests() {
cache = HotRestartCacheHandler();

// For dart2wasm, we have to check the length this way.
expect(_jsHotRestartStore!.length, 0.toJS);
expect(_jsHotRestartStore!.length, 0);
expect(element.isConnected, isFalse); // Removed
expect(element2.isConnected, isTrue);
});
Expand Down