Skip to content

Commit 61b8d81

Browse files
authored
refactor(ses): tame fn constructors try/catch condition for Hermes
1 parent 0b331a0 commit 61b8d81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: packages/ses/src/tame-function-constructors.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,7 @@ export default function tameFunctionConstructors() {
128128
);
129129

130130
try {
131-
new FERAL_FUNCTION(
132-
'return (async function* AsyncGeneratorFunctionInstance() {})',
133-
)();
131+
new FERAL_FUNCTION('async function* AsyncGeneratorFunctionInstance() {}')();
134132
repairFunction(
135133
'AsyncGeneratorFunction',
136134
'%InertAsyncGeneratorFunction%',

0 commit comments

Comments
 (0)