Index: pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
diff --git a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
index f300312bd3050559da0100521aaf8fd6638242f5..909b11361f3492f8eaeef58432a4048e3a82be2b 100644 |
--- a/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
+++ b/pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart |
@@ -36,11 +36,6 @@ class JavaScriptConstantTask extends ConstantCompilerTask { |
} |
@override |
- ConstantExpression getConstantForVariable(VariableElement element) { |
- return dartConstantCompiler.getConstantForVariable(element); |
- } |
- |
- @override |
ConstantExpression compileConstant(VariableElement element) { |
return measure(() { |
// TODO(het): Only report errors from one of the constant compilers |
@@ -58,9 +53,10 @@ class JavaScriptConstantTask extends ConstantCompilerTask { |
}); |
} |
- void compileVariable(VariableElement element) { |
- measure(() { |
- jsConstantCompiler.compileVariable(element); |
+ @override |
+ ConstantExpression compileVariable(VariableElement element) { |
+ return measure(() { |
+ return jsConstantCompiler.compileVariable(element); |
}); |
} |