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

Unified Diff: lib/runtime/dart_sdk.js

Issue 2033543002: Wire up class hierarchy for recursive inheritance (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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/recursive_inheritance_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 8d1e2a8f714440c3e26b07f0bf6c02fe19ab4fab..1959d7f1f1e5d5808a993abbfa03c9499b60dba2 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -925,10 +925,11 @@ dart_library.library('dart_sdk', null, /* Imports */[
};
dart.setBaseClass = function(derived, base) {
derived.prototype.__proto__ = base.prototype;
+ derived.__proto__ = base;
};
dart.setExtensionBaseClass = function(derived, base) {
derived.prototype[dart._extensionType] = derived;
- dart.setBaseClass(derived, base);
+ derived.prototype.__proto__ = base.prototype;
};
dart.throwCastError = function(object, actual, type) {
dart.throw(new _js_helper.CastErrorImplementation(object, dart.typeName(actual), dart.typeName(type)));
« no previous file with comments | « no previous file | test/codegen/language/recursive_inheritance_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698