diff --git a/packages/ses/src/commons.js b/packages/ses/src/commons.js index c9126978b4..83cac8b2b2 100644 --- a/packages/ses/src/commons.js +++ b/packages/ses/src/commons.js @@ -403,6 +403,9 @@ const getAsyncGeneratorFunctionInstance = () => { // However React Native provides a `console` implementation when setting up error handling: // /~https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/InitializeCore.js return undefined; + } else if (error.name === 'EvalError') { + // eslint-disable-next-line no-empty-function + return async function* AsyncGeneratorFunctionInstance() {}; } else { throw error; }