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 Nov 29, 2024
1 parent c814b62 commit 06ff883
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 @@ -407,6 +407,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 06ff883

Please sign in to comment.