Skip to content

Commit

Permalink
refactor(compartment): update async arrow fn with 'this' keyword to n…
Browse files Browse the repository at this point in the history
…on-arrow
  • Loading branch information
leotm committed Nov 27, 2024
1 parent 305e4d9 commit f6fb020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ses/src/compartment.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const makeCompartmentConstructor = (
* relative to the calling module's full specifier.
* @returns {Promise<ModuleExportsNamespace>}
*/
const compartmentImport = async fullSpecifier => {
async function compartmentImport(fullSpecifier) {
if (typeof resolveHook !== 'function') {
throw new TypeError(
`Compartment does not support dynamic import: no configured resolveHook for compartment ${q(name)}`,
Expand All @@ -332,7 +332,7 @@ export const makeCompartmentConstructor = (
);
execute();
return exportsProxy;
};
}

weakmapSet(privateFields, this, {
name: `${name}`,
Expand Down

0 comments on commit f6fb020

Please sign in to comment.