Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Unified Diff: src/parsing/parser.cc

Issue 2488193003: Generate inferred names for es6 class functions (Closed)
Patch Set: git cl format Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-func-name-inference.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | test/cctest/test-func-name-inference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698