Skip to content

Commit

Permalink
refactor(ses): tame fn constructors try/catch condition for Hermes
Browse files Browse the repository at this point in the history
  • Loading branch information
leotm authored Jul 2, 2024
1 parent 0b331a0 commit 61b8d81
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ses/src/tame-function-constructors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%',
Expand Down

0 comments on commit 61b8d81

Please sign in to comment.