Skip to content

Commit

Permalink
feat(ses): support CSP in commons AsyncGeneratorFunctionInstance
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm committed Dec 3, 2024
1 parent e749223 commit 182b0e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ses/src/commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 182b0e2

Please sign in to comment.