Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index b00b3ed2cf4f4dc7e3d3ab73e62f9f58e1527ac8..a59de17f8e5019c174d4c334caf535af51af444a 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 |