diff --git a/packages/ses/src/compartment.js b/packages/ses/src/compartment.js index 9860f935e0..5ee38e3e41 100644 --- a/packages/ses/src/compartment.js +++ b/packages/ses/src/compartment.js @@ -317,7 +317,7 @@ export const makeCompartmentConstructor = ( * relative to the calling module's full specifier. * @returns {Promise} */ - 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)}`, @@ -332,7 +332,7 @@ export const makeCompartmentConstructor = ( ); execute(); return exportsProxy; - }; + } weakmapSet(privateFields, this, { name: `${name}`,