Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 969c70a75d7b26b918660f7d601de1aaf9763920..5a3886ed65bcfde6efcf53495725e67147665d7e 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -341,7 +341,8 @@ class Scope: public ZoneObject { |
// present - is not collected and should be handled separately. |
void CollectVariables(ZoneList<Variable*>* stack_locals, |
ZoneList<Variable*>* context_locals, |
- ZoneList<Variable*>* context_globals); |
+ ZoneList<Variable*>* context_globals, |
+ ZoneList<Variable*>* module_vars = nullptr); |
// Result of variable allocation. |
int num_stack_slots() const { return num_stack_slots_; } |
@@ -838,6 +839,8 @@ class ModuleScope final : public DeclarationScope { |
public: |
ModuleScope(DeclarationScope* script_scope, |
AstValueFactory* ast_value_factory); |
+ ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, |
+ AstValueFactory* ast_value_factory); |
ModuleDescriptor* module() const { |
DCHECK_NOT_NULL(module_descriptor_); |