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

Unified Diff: src/parsing/parser.cc

Issue 2223893004: [modules] Detect all indirect exports and represent them as such. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-imports
Patch Set: Created 4 years, 4 months 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
Index: src/parsing/parser.cc
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc
index 36e777610cd6a90723338cb7ada6fafc8b18f02c..3213a128eb9ef10a31eeb8aec5bd1781fad162e2 100644
--- a/src/parsing/parser.cc
+++ b/src/parsing/parser.cc
@@ -1022,6 +1022,7 @@ FunctionLiteral* Parser::DoParseProgram(ParseInfo* info) {
parsing_module_ = info->is_module();
if (parsing_module_) {
ParseModuleItemList(body, &ok);
+ module()->MakeIndirectExportsExplicit();
adamk 2016/08/09 16:52:52 Maybe this should just be called by Validate()? It
neis 2016/08/10 11:53:30 Yeah, I was unsure about this too. I moved it into
ok = ok &&
module()->Validate(this->scope()->AsDeclarationScope(),
&pending_error_handler_, zone());
« src/ast/modules.h ('K') | « src/ast/modules.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698