Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 4b539897b87b94cc66abbd27c2f2931ff9fb3354..a012d815ca585a86abd539a28fb7beb6241f1cf0 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -354,6 +354,10 @@ OptimizedCompileJob::Status OptimizedCompileJob::CreateGraph() { |
return AbortAndDisableOptimization(kTooManyParametersLocals); |
} |
+ if (scope->HasIllegalRedeclaration()) { |
+ return AbortAndDisableOptimization(kFunctionWithIllegalRedeclaration); |
+ } |
+ |
// Take --hydrogen-filter into account. |
if (!info()->closure()->PassesFilter(FLAG_hydrogen_filter)) { |
return AbortOptimization(kHydrogenFilter); |