Skip to content

Commit f06a8ce

Browse files
authored
Merge pull request #105 from Ruud14/window_open_isnull
Fixed window.open(...) returning nullalbe WindowBase
2 parents d4e6f57 + 936d9da commit f06a8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/html/api/window.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -984,8 +984,8 @@ class Window extends EventTarget
984984
///
985985
/// * [Window.open](https://developer.mozilla.org/en-US/docs/Web/API/Window.open)
986986
/// from MDN.
987-
WindowBase? open(String url, String name, [String? options]) {
988-
return null;
987+
WindowBase open(String url, String name, [String? options]) {
988+
throw UnimplementedError();
989989
}
990990

991991
@override

0 commit comments

Comments
 (0)