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

Unified Diff: lib/runtime/dart_sdk.js

Issue 2069653003: Fix function subtyping crash (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 6 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:
Download patch
« no previous file with comments | « no previous file | test/codegen/language/function_subtype_regression_ddc_588_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 8744d87af34828ca0251efda098cbbeaf33dc92e..89aa138130ea3f845aca09352acc821947d33dfd 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -1567,6 +1567,9 @@ dart_library.library('dart_sdk', null, /* Imports */[
if (ft2 === core.Function) {
return true;
}
+ if (ft1 === core.Function) {
+ return false;
+ }
let ret1 = ft1.returnType;
let ret2 = ft2.returnType;
let args1 = ft1.args;
« no previous file with comments | « no previous file | test/codegen/language/function_subtype_regression_ddc_588_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698