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:
Jon Coppeard
2022-07-06 14:21:17 +00:00
parent b7cc870962
commit 8a65bfb2f7
6 changed files with 7 additions and 222 deletions

View File

@@ -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);