| Index: pkg/compiler/lib/src/js_emitter/constant_ordering.dart
|
| diff --git a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
|
| index 57ce76216f9e67cac89ea884bed17f991196f832..90b836f717c1d24057186874d5e95889c5274097 100644
|
| --- a/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
|
| +++ b/pkg/compiler/lib/src/js_emitter/constant_ordering.dart
|
| @@ -148,11 +148,11 @@ class _CompareVisitor implements ConstantValueVisitor<int, ConstantValue> {
|
| // as elements of a few constants. If this becomes a source of instability,
|
| // we will need to add a total ordering on JavaScript ASTs including
|
| // deferred elements.
|
| - SyntheticConstantKind aKind = a.kind;
|
| - SyntheticConstantKind bKind = b.kind;
|
| + SyntheticConstantKind aKind = a.valueKind;
|
| + SyntheticConstantKind bKind = b.valueKind;
|
| int r = aKind.index - bKind.index;
|
| if (r != 0) return r;
|
| - switch (a.kind) {
|
| + switch (aKind) {
|
| case SyntheticConstantKind.DUMMY_INTERCEPTOR:
|
| case SyntheticConstantKind.EMPTY_VALUE:
|
| // Never emitted.
|
|
|