Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 1c7a02bf12fa6c06790176493fb59c77c779f4b0..e3a7e6696624f6f8b2e63308059fdb7e1de34a11 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -984,6 +984,13 @@ void FullCodeGenerator::EmitBreak(Statement* target) { |
__ jmp(current->AsBreakable()->break_label()); |
} |
+void FullCodeGenerator::EmitIllegalRedeclaration() { |
+ Comment cmnt(masm_, "[ Declarations"); |
+ Expression* illegal = scope()->GetIllegalRedeclaration(); |
+ SetExpressionAsStatementPosition(illegal); |
+ VisitForEffect(illegal); |
+} |
+ |
void FullCodeGenerator::VisitBreakStatement(BreakStatement* stmt) { |
Comment cmnt(masm_, "[ BreakStatement"); |
SetStatementPosition(stmt); |