Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Unified Diff: lib/runtime/dart/html.js

Issue 1611753002: fixes #415, correct type for map literals (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/runtime/dart/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index 17d35d304cada9d780a9b7519c5255f5cef5b4f0..be6e187c0c955a473f654a93ffbbfa4829ce87d0 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -6100,7 +6100,7 @@ dart_library.library('dart/html', null, /* Imports */[
}, dart.void, [core.String, core.String]));
let formData = parts[dartx.join]('&');
if (requestHeaders == null) {
- requestHeaders = dart.map();
+ requestHeaders = dart.map({}, core.String, core.String);
}
requestHeaders.putIfAbsent('Content-Type', dart.fn(() => 'application/x-www-form-urlencoded; charset=UTF-8', core.String, []));
return HttpRequest.request(url, {method: 'POST', withCredentials: withCredentials, responseType: responseType, requestHeaders: requestHeaders, sendData: formData, onProgress: onProgress});
@@ -6177,7 +6177,7 @@ dart_library.library('dart/html', null, /* Imports */[
}
}
get responseHeaders() {
- let headers = dart.map();
+ let headers = dart.map({}, core.String, core.String);
let headersString = this.getAllResponseHeaders();
if (headersString == null) {
return headers;

Powered by Google App Engine
This is Rietveld 408576698