mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
Deferred load: add status error code
R=sra@google.com Review-Url: https://codereview.chromium.org/2990613002 .
This commit is contained in:
parent
7bdfd098f6
commit
77908a43a1
|
@ -3743,8 +3743,9 @@ Future<Null> _loadHunk(String hunkName) {
|
|||
'#.addEventListener("load", #, false)',
|
||||
xhr,
|
||||
convertDartClosureToJS((event) {
|
||||
if (JS('int', '#.status', xhr) != 200) {
|
||||
failure('');
|
||||
int status = JS('int', '#.status', xhr);
|
||||
if (status != 200) {
|
||||
failure('Request status: $status');
|
||||
}
|
||||
String code = JS('String', '#.responseText', xhr);
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue