Unverified Commit 03b9911a authored by Srujan Gaddam's avatar Srujan Gaddam Committed by GitHub

Make completeError be a proper JS function (#132492)

Function.toJS will start requiring that the function accept and return
JS types only.

Allows https://dart-review.googlesource.com/c/sdk/+/316867 to land.
parent 32aa3128
...@@ -165,7 +165,8 @@ class NetworkImage ...@@ -165,7 +165,8 @@ class NetworkImage
} }
}.toJS); }.toJS);
request.addEventListener('error', completer.completeError.toJS); request.addEventListener('error',
((JSObject e) => completer.completeError(e)).toJS);
request.send(); request.send();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment