Index: sdk/lib/_internal/compiler/js_lib/js_helper.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/js_helper.dart b/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
index bb22a2fdce13d5954ddecb7bc395941c2aa2fca4..702d4bea833ca333545ab3a15243d26d83342c0d 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/js_helper.dart |
@@ -3546,7 +3546,7 @@ Future<Null> _loadHunk(String hunkName) { |
int index = uri.lastIndexOf('/'); |
uri = '${uri.substring(0, index + 1)}$hunkName'; |
- var xhr = JS('dynamic', 'new XMLHttpRequest()'); |
+ var xhr = JS('var', 'new XMLHttpRequest()'); |
JS('void', '#.open("GET", #)', xhr, uri); |
JS('void', '#.addEventListener("load", #, false)', |
xhr, convertDartClosureToJS((event) { |