Index: pkg/compiler/lib/src/js_backend/constant_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_emitter.dart b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
index eba60d909afa435a26f701e80e7717659c0b9b2a..7cc8dc540177f1c468ec8e919d8b0e48968e59e3 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_emitter.dart |
@@ -269,7 +269,7 @@ class ConstantEmitter implements ConstantValueVisitor<jsAst.Expression, Null> { |
@override |
jsAst.Expression visitSynthetic(SyntheticConstantValue constant, [_]) { |
- switch (constant.kind) { |
+ switch (constant.valueKind) { |
case SyntheticConstantKind.DUMMY_INTERCEPTOR: |
case SyntheticConstantKind.EMPTY_VALUE: |
return new jsAst.LiteralNumber('0'); |