Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 4b6cdb1304662f72db58fdba3d17f373b4ad2b3e..3262ceb2d303a1918a952410b5df4a5d4a341888 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4299,7 +4299,9 @@ FunctionLiteral* Parser::ParseFunctionLiteral( |
// Parse function. |
{ |
FunctionState function_state(&function_state_, &scope_state_, scope, kind); |
+#ifdef DEBUG |
this->scope()->SetScopeName(function_name); |
+#endif |
ExpressionClassifier formals_classifier(this, &duplicate_finder); |
eager_compile_hint = function_state_->this_function_is_parenthesized() |
@@ -5011,7 +5013,9 @@ Expression* Parser::ParseClassLiteral(ExpressionClassifier* classifier, |
BlockState block_state(&scope_state_); |
RaiseLanguageMode(STRICT); |
+#ifdef DEBUG |
scope()->SetScopeName(name); |
+#endif |
VariableProxy* proxy = nullptr; |
if (name != nullptr) { |