| Index: sdk/lib/_internal/lib/js_mirrors.dart
|
| diff --git a/sdk/lib/_internal/lib/js_mirrors.dart b/sdk/lib/_internal/lib/js_mirrors.dart
|
| index 912af14a257dfcc692e14c9b283ab7f93312b26d..b1a092077d36da1a5b73d004452714f194551903 100644
|
| --- a/sdk/lib/_internal/lib/js_mirrors.dart
|
| +++ b/sdk/lib/_internal/lib/js_mirrors.dart
|
| @@ -426,12 +426,8 @@ class JsLibraryMirror extends JsDeclarationMirror with JsObjectMirror
|
| // TODO(floitsch): Remove the getterStub hack.
|
| continue;
|
| }
|
| - bool isConstructor = unmangledName.startsWith('new ');
|
| - bool isStatic = !isConstructor; // Top-level functions are static, but
|
| - // constructors are not.
|
| - if (isConstructor) {
|
| - unmangledName = unmangledName.substring(4).replaceAll(r'$', '.');
|
| - }
|
| + bool isStatic = true;
|
| + bool isConstructor = false;
|
| JsMethodMirror mirror =
|
| new JsMethodMirror.fromUnmangledName(
|
| unmangledName, jsFunction, isStatic, isConstructor);
|
|
|