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.
This commit is contained in:
parent
32aa3128ee
commit
03b9911a07
@ -165,7 +165,8 @@ class NetworkImage
|
||||
}
|
||||
}.toJS);
|
||||
|
||||
request.addEventListener('error', completer.completeError.toJS);
|
||||
request.addEventListener('error',
|
||||
((JSObject e) => completer.completeError(e)).toJS);
|
||||
|
||||
request.send();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user