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

Unified Diff: lib/runtime/dart_sdk.js

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:
Download patch
« no previous file with comments | « no previous file | lib/src/compiler/code_generator.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 21f75dec979a199cc28ce880687af9c1b6acb3ce..4b6b622c2dc62645621a4c96471754c5ebb6991e 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -949,7 +949,7 @@ dart_library.library('dart_sdk', null, /* Imports */[
dart.callableClass = function(callableCtor, classExpr) {
callableCtor.prototype = classExpr.prototype;
callableCtor.prototype.constructor = callableCtor;
- callableCtor.__proto__ = classExpr.__proto__;
+ callableCtor.__proto__ = classExpr;
return callableCtor;
};
dart.defineNamedConstructorCallable = function(clazz, name, ctor) {
« no previous file with comments | « no previous file | lib/src/compiler/code_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698