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

Unified Diff: tool/input_sdk/private/ddc_runtime/classes.dart

Issue 2200913002: fixes #616, statics on callable functions (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 | « test/codegen_expected/language/regress_21793_test_none_multi.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/private/ddc_runtime/classes.dart
diff --git a/tool/input_sdk/private/ddc_runtime/classes.dart b/tool/input_sdk/private/ddc_runtime/classes.dart
index e34a3fa11f80765c17a0b52b4701f92aaf72e7bd..6bef0d699f3413ba4194c93dc0746f471b210e65 100644
--- a/tool/input_sdk/private/ddc_runtime/classes.dart
+++ b/tool/input_sdk/private/ddc_runtime/classes.dart
@@ -468,7 +468,7 @@ callableClass(callableCtor, classExpr) {
// We're not going to use the original class, so we can safely replace it to
// point at this constructor for the runtime type information.
JS('', '#.prototype.constructor = #', callableCtor, callableCtor);
- JS('', '#.__proto__ = #.__proto__', callableCtor, classExpr);
+ JS('', '#.__proto__ = #', callableCtor, classExpr);
return callableCtor;
}
« no previous file with comments | « test/codegen_expected/language/regress_21793_test_none_multi.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698