Bug 1778318 - Part 3: Remove prototypes for internal module objects r=arai
Since these no longer have any methods or getters we can give them null prototypes. Depends on D151134 Differential Revision: https://phabricator.services.mozilla.com/D151135
This commit is contained in:
@@ -5780,10 +5780,6 @@ static bool DumpAST(JSContext* cx, const JS::ReadOnlyCompileOptions& options,
|
||||
if (goal == frontend::ParseGoal::Script) {
|
||||
pn = parser.parse();
|
||||
} else {
|
||||
if (!GlobalObject::ensureModulePrototypesCreated(cx, cx->global())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
ModuleBuilder builder(cx, &parser);
|
||||
|
||||
SourceExtent extent = SourceExtent::makeGlobalExtent(length);
|
||||
|
||||
Reference in New Issue
Block a user