Skip to content

Commit 829a2d0

Browse files
authored
Relabel JSFunction as JSExportedDartFunction (#125453)
toDart exists on the latter, not the former. Fixing flutter/flutter#125220. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing.
1 parent 4dddac9 commit 829a2d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flutter/test/painting/_test_http_request.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class TestHttpRequest {
7676
JSVoid addEventListener(JSString type, DomEventListener listener) {
7777
if (type.toDart == mockEvent?.type) {
7878
final DartDomEventListener dartListener =
79-
(listener as JSFunction).toDart as DartDomEventListener;
79+
(listener as JSExportedDartFunction).toDart as DartDomEventListener;
8080
dartListener(mockEvent!.event);
8181
}
8282
}

0 commit comments

Comments
 (0)