Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index d55bf33babca94fb6c90f85b1996065e2a1c462e..75094d75c5eda9bac646043f2c8809abfb8f757c 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -746,7 +746,7 @@ MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCodeCommon( |
if (!Parser::ParseStatic(info->parse_info())) return MaybeHandle<Code>(); |
Handle<SharedFunctionInfo> shared = info->shared_info(); |
FunctionLiteral* lit = info->literal(); |
- shared->set_language_mode(lit->language_mode()); |
+ DCHECK_EQ(shared->language_mode(), lit->language_mode()); |
SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count()); |
MaybeDisableOptimization(shared, lit->dont_optimize_reason()); |