-
In anticipation of Top Level Await several changes were made to the dynamic imports API. First, dynamic imports now require a status of JS::DynamicImportStatus::Ok or ::Failed when resolving and completing the import. Next, JS::ModuleEvaluate now returns a value because with Top Level Await enabled a Promise can be returned. For now, we ignore the value as we aren't supporting Top Level Await. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1519100 Changeset: https://phabricator.services.mozilla.com/D95884 In anticipation of Import Assertions instead of a string, the module hooks now receive an object containing the specifier string. This is so that assertions, once landed, can include additional metadata. For now they are just an additional step in our hook. See: https://bugzilla.mozilla.org/show_bug.cgi?id=1668330 Changeset: https://phabricator.services.mozilla.com/D109495
829abdaa