Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index 61d63c7cec2624b3588383b763d71fd499d61f89..7b19c115820531ae687ccd3067e91a3cec6ed4b0 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -3607,6 +3607,7 @@ Expression* Parser::RewriteClassLiteral(const AstRawString* name, |
} |
do_block->set_scope(scope()->FinalizeBlockScope()); |
do_expr->set_represented_function(class_info->constructor); |
+ AddFunctionForNameInference(class_info->constructor); |
return do_expr; |
} |