Chromium Code Reviews| Index: sdk/lib/_internal/compiler/js_lib/js_mirrors.dart |
| diff --git a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart |
| index 2b0005726cd7e3ac224eb99beb7a50c83ba66a69..27dadfb747f49e6f9407d2298a60be07618943df 100644 |
| --- a/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart |
| +++ b/sdk/lib/_internal/compiler/js_lib/js_mirrors.dart |
| @@ -1673,6 +1673,10 @@ class JsClassMirror extends JsTypeMirror with JsObjectMirror |
| List<JsMethodMirror> _getMethodsWithOwner(DeclarationMirror methodOwner) { |
| var prototype = JS('', '#.prototype', _jsConstructor); |
| + // The prototype might not have been processed yet, so do that now. |
| + if (JS('bool', '!!#.\$deferredAction', prototype)) { |
|
sra1
2015/03/05 18:23:25
Other places use the namer.
Perhaps use a differen
herhut
2015/03/06 12:36:45
Thanks for catching this. I will have it go throug
floitsch
2015/03/09 16:35:06
not done yet.
|
| + JS('', '#.\$deferredAction()', prototype); |
| + } |
| List<String> keys = extractKeys(prototype); |
| var result = <JsMethodMirror>[]; |
| for (String key in keys) { |