Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index f5fc155c5f66b15173641bfedbbaa680b06d69fc..d9b55667bdc2abb78359886da080462b94f86c72 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1778,6 +1778,7 @@ |
CompilationInfo info(&parse_info, Handle<JSFunction>::null()); |
parse_info.set_literal(literal); |
parse_info.set_shared_info(result); |
+ parse_info.set_scope(literal->scope()); |
parse_info.set_language_mode(literal->scope()->language_mode()); |
if (outer_info->will_serialize()) info.PrepareForSerializing(); |
if (outer_info->is_debug()) info.MarkAsDebug(); |