Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 2b55c025198688937e594d186688534b45536ea2..a1ec9324b0c7cb7aed0bdeed83208331457808fb 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1816,7 +1816,7 @@ Handle<Module> Factory::NewModule(Handle<SharedFunctionInfo> code) { |
Handle<ModuleInfo> module_info(code->scope_info()->ModuleDescriptorInfo(), |
isolate()); |
Handle<ObjectHashTable> exports = |
- ObjectHashTable::New(isolate(), module_info->regular_exports()->length()); |
+ ObjectHashTable::New(isolate(), module_info->RegularExportCount()); |
int requested_modules_length = module_info->module_requests()->length(); |
Handle<FixedArray> requested_modules = |
requested_modules_length > 0 ? NewFixedArray(requested_modules_length) |