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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 923113002: dart2js: fix dart2js crash when getRuntimeTypeArgument was not registered. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « no previous file | tests/language/function_type3_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index e39689912d640397e5d405738780373d805b89af..1a3807477c27d224e17d1449a5d7e295e99a6082 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2574,7 +2574,7 @@ class JavaScriptResolutionCallbacks extends ResolutionCallbacks {
if (type.isMalformed) {
registerBackendStaticInvocation(backend.getThrowTypeError(), registry);
}
- if (!type.treatAsRaw || type.containsTypeVariables) {
+ if (!type.treatAsRaw || type.containsTypeVariables || type.isFunctionType) {
// TODO(johnniwinther): Investigate why this is needed.
registerBackendStaticInvocation(
backend.getSetRuntimeTypeInfo(), registry);
« no previous file with comments | « no previous file | tests/language/function_type3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698