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

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: add TODO 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
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index 71c674cbd89dc70b8f3fcb07d99ce5fbb158a0e8..c66d0a47403cca04484b4dcc690cd9e8ee613446 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -6190,7 +6190,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});
@@ -6267,7 +6267,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;
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698