Index: src/ast/scopes.cc |
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc |
index 5af919c85a0c7367c58120c83dea525fa0f0814e..27bffb84bb80dac380093aa17faf4a897d89bc88 100644 |
--- a/src/ast/scopes.cc |
+++ b/src/ast/scopes.cc |
@@ -164,7 +164,7 @@ ModuleScope::ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, |
AstValueFactory* avfactory) |
: DeclarationScope(avfactory->zone(), MODULE_SCOPE, scope_info) { |
Zone* zone = avfactory->zone(); |
- ModuleInfo* module_info = scope_info->ModuleDescriptorInfo(); |
+ Handle<ModuleInfo> module_info(scope_info->ModuleDescriptorInfo(), isolate); |
set_language_mode(STRICT); |
module_descriptor_ = new (zone) ModuleDescriptor(zone); |
@@ -181,9 +181,8 @@ ModuleScope::ModuleScope(Isolate* isolate, Handle<ScopeInfo> scope_info, |
} |
// Deserialize regular exports. |
- Handle<FixedArray> regular_exports(module_info->regular_exports(), isolate); |
module_descriptor_->DeserializeRegularExports(isolate, avfactory, |
- regular_exports); |
+ module_info); |
// Deserialize namespace imports. |
Handle<FixedArray> namespace_imports(module_info->namespace_imports(), |