| Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
|
| index 6e21041afd76d2e4f40138bb9607a83fcffdad5b..c0bfbd31253afc2cfa0b2ddc41705c9e080adf3e 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/object/InstanceState.java
|
| @@ -30,9 +30,10 @@ public abstract class InstanceState {
|
| * @throws EvaluationException if the operator is not appropriate for an object of this kind
|
| */
|
| public InstanceState add(InstanceState rightOperand) throws EvaluationException {
|
| - if (this instanceof StringState || rightOperand instanceof StringState) {
|
| - return concatenate(rightOperand);
|
| - }
|
| + // TODO(brianwilkerson) Uncomment the code below when the new constant support can be added.
|
| +// if (this instanceof StringState || rightOperand instanceof StringState) {
|
| +// return concatenate(rightOperand);
|
| +// }
|
| assertNumOrNull(this);
|
| assertNumOrNull(rightOperand);
|
| throw new EvaluationException(CompileTimeErrorCode.INVALID_CONSTANT);
|
|
|