diff --git a/packages/ses/src/tame-function-constructors.js b/packages/ses/src/tame-function-constructors.js index 01e7be5a8e..8d26ee0f28 100644 --- a/packages/ses/src/tame-function-constructors.js +++ b/packages/ses/src/tame-function-constructors.js @@ -128,9 +128,7 @@ export default function tameFunctionConstructors() { ); try { - new FERAL_FUNCTION( - 'return (async function* AsyncGeneratorFunctionInstance() {})', - )(); +new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')(); repairFunction( 'AsyncGeneratorFunction', '%InertAsyncGeneratorFunction%',