Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 9843dd6452e228bce75612ddd8685328df29808f..239bea35c2c9b1b08859809d6dfe5b2bd9b48eda 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -71,7 +71,6 @@ class CompilationInfo BASE_EMBEDDED { |
flags_ |= IsGlobal::encode(true); |
} |
void MarkAsStrict() { |
- ASSERT(!is_lazy()); |
flags_ |= IsStrict::encode(true); |
} |
StrictModeFlag StrictMode() { |
@@ -153,6 +152,9 @@ class CompilationInfo BASE_EMBEDDED { |
void Initialize(Mode mode) { |
mode_ = V8::UseCrankshaft() ? mode : NONOPT; |
+ if (!shared_info_.is_null() && shared_info_->strict_mode()) { |
+ MarkAsStrict(); |
+ } |
} |
void SetMode(Mode mode) { |