Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 51c21491819a296a34b7318ea24f277bc8fdd53b..83a80d8eb2ae3c3d40be56b160a418799cd4a595 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -676,6 +676,7 @@ Handle<SharedFunctionInfo> Compiler::BuildFunctionInfo(FunctionLiteral* literal, |
CompilationInfo info(script); |
info.SetFunction(literal); |
info.SetScope(literal->scope()); |
+ if (literal->scope()->is_strict_mode()) info.MarkAsStrictMode(); |
LiveEditFunctionTracker live_edit_tracker(info.isolate(), literal); |
// Determine if the function can be lazily compiled. This is necessary to |