| Index: lib/src/codegen/js_codegen.dart
|
| diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart
|
| index 99b6e21a478354d30df987ae992f274f8f0ba2fb..a559435c57d6764fd4dc1fe720ab5df941c5bd07 100644
|
| --- a/lib/src/codegen/js_codegen.dart
|
| +++ b/lib/src/codegen/js_codegen.dart
|
| @@ -1938,6 +1938,8 @@ class JSCodegenVisitor extends GeneralizingAstVisitor {
|
| // We can also do this if both sides are the same primitive type.
|
| if (_canUsePrimitiveEquality(left, right)) {
|
| code = op.type == TokenType.EQ_EQ ? '# == #' : '# != #';
|
| + } else if (left is SuperExpression) {
|
| + return _emitSend(left, op.lexeme, [right]);
|
| } else {
|
| var bang = op.type == TokenType.BANG_EQ ? '!' : '';
|
| code = '${bang}dart.equals(#, #)';
|
|
|