| Index: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
|
| diff --git a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
|
| index f7fa49105fab10aad80afb94d475187a898db39b..aeae578522840f35ce0c2e26a118495ab2ac76dd 100644
|
| --- a/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
|
| +++ b/pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart
|
| @@ -622,11 +622,13 @@ addTypeTests(ctor) => JS(
|
| };
|
| })()''');
|
|
|
| +// TODO(vsm): Consider optimizing this. We may be able to statically
|
| +// determine which == operation to invoke given the static types.
|
| equals(x, y) => JS(
|
| '',
|
| '''(() => {
|
| if ($x == null || $y == null) return $x == $y;
|
| - let eq = $x['=='];
|
| + let eq = $x[dartx['==']] || $x['=='];
|
| return eq ? eq.call($x, $y) : $x === $y;
|
| })()''');
|
|
|
|
|