Index: src/parsing/preparser.cc |
diff --git a/src/parsing/preparser.cc b/src/parsing/preparser.cc |
index 9696cc75ba230d409fa8f3468e6e83c16cf7e63f..2467c54a2255cd5cdd0f07458a040243e389f9c8 100644 |
--- a/src/parsing/preparser.cc |
+++ b/src/parsing/preparser.cc |
@@ -1178,10 +1178,12 @@ void PreParser::ParseLazyFunctionLiteralBody(bool* ok, |
// Position right after terminal '}'. |
DCHECK_EQ(Token::RBRACE, scanner()->peek()); |
int body_end = scanner()->peek_location().end_pos; |
+ DeclarationScope* scope = this->scope()->AsDeclarationScope(); |
+ DCHECK(scope->is_function_scope()); |
log_->LogFunction(body_start, body_end, |
function_state_->materialized_literal_count(), |
function_state_->expected_property_count(), language_mode(), |
- scope()->uses_super_property(), scope()->calls_eval()); |
+ scope->uses_super_property(), scope->calls_eval()); |
} |
PreParserExpression PreParser::ParseClassLiteral( |