| Index: dart/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/dart/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
|
| index 8fbb03efbb64a36535799cff08df439b8478626c..eeebafd4b5ac91fe7f369267043f7452d483e02b 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart
|
| @@ -1383,7 +1383,11 @@ class Dart2JsMethodMirror extends Dart2JsMemberMirror
|
|
|
| factory Dart2JsMethodMirror(Dart2JsContainerMirror objectMirror,
|
| FunctionElement function) {
|
| - String simpleName = function.name.slowToString();
|
| + String realName = function.name.slowToString();
|
| + // TODO(ahe): This method should not be calling
|
| + // Elements.operatorNameToIdentifier.
|
| + String simpleName =
|
| + Elements.operatorNameToIdentifier(function.name).slowToString();
|
| String displayName;
|
| String constructorName = null;
|
| String operatorName = null;
|
| @@ -1424,7 +1428,7 @@ class Dart2JsMethodMirror extends Dart2JsMemberMirror
|
| }
|
| // Simple name is TypeName.constructorName.
|
| displayName = simpleName;
|
| - } else if (simpleName == 'negate') {
|
| + } else if (realName == 'unary-') {
|
| kind = Dart2JsMethodKind.OPERATOR;
|
| operatorName = '-';
|
| // Simple name is 'unary-'.
|
|
|