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

Unified Diff: dart/sdk/lib/_internal/lib/js_mirrors.dart

Issue 108923003: Fix issues that caused revert of r30955: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r30973. Created 7 years 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 | « dart/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/lib/js_mirrors.dart
diff --git a/dart/sdk/lib/_internal/lib/js_mirrors.dart b/dart/sdk/lib/_internal/lib/js_mirrors.dart
index 0cb1720955cf53e019aea8cf9e8ddf8d3ff6196b..ba809de98874a716724c141d3153732464e8504d 100644
--- a/dart/sdk/lib/_internal/lib/js_mirrors.dart
+++ b/dart/sdk/lib/_internal/lib/js_mirrors.dart
@@ -1771,6 +1771,8 @@ class JsMethodMirror extends JsDeclarationMirror implements MethodMirror {
if (functionType is int) {
type = new JsFunctionTypeMirror(info.computeFunctionRti(null), this);
assert(_parameterCount == type.parameters.length);
+ } else if (isTopLevel) {
+ type = new JsFunctionTypeMirror(info.computeFunctionRti(null), owner);
} else {
TypeMirror ownerType = owner;
JsClassMirror ownerClass = ownerType.originalDeclaration;
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698