Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 0b843bd45b32eb6d57c1efa86ee784c59290c817..3a8470866b037c092916300a1ce331b7c4b223c7 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6053,7 +6053,9 @@ void HGraphBuilder::VisitDeclaration(Declaration* decl) { |
void HGraphBuilder::HandleDeclaration(VariableProxy* proxy, |
VariableMode mode, |
FunctionLiteral* function) { |
- if (mode == LET) return Bailout("unsupported let declaration"); |
+ if (mode == LET || mode == CONST_HARMONY) { |
+ return Bailout("unsupported harmony declaration"); |
+ } |
Variable* var = proxy->var(); |
switch (var->location()) { |
case Variable::UNALLOCATED: |