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

Unified Diff: lib/runtime/_classes.js

Issue 1293293002: Attach type info to extension method and object method tear-offs (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 years, 4 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 | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/_classes.js
diff --git a/lib/runtime/_classes.js b/lib/runtime/_classes.js
index 8d897240653dac711a8847da835c3f239b5ae748..80ceb56249bf4fa36dca9b9729e255d701391dfd 100644
--- a/lib/runtime/_classes.js
+++ b/lib/runtime/_classes.js
@@ -336,6 +336,9 @@ dart_library.library('dart_runtime/_classes', null, /* Imports */[
copyTheseProperties(jsProto, extProto, getOwnPropertySymbols(extProto));
extProto = extProto.__proto__;
}
+ let originalSigFn = getOwnPropertyDescriptor(dartExtType, _methodSig).get;
+ assert(originalSigFn);
+ defineMemoizedGetter(jsType, _methodSig, originalSigFn);
}
exports.registerExtension = registerExtension;
« no previous file with comments | « no previous file | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698