fix(ses): Protect necessary eval admission before it has been admitted
MODIFY
packages/ses/src/make-safe-evaluator.js
packages/ses/src/make-safe-evaluator.js
@@ -67,12 +67,12 @@ export const makeSafeEvaluator = ({
mandatoryTransforms,
]);
+ let err;
+ try {
// Allow next reference to eval produce the unsafe FERAL_EVAL.
// eslint-disable-next-line @endo/no-polymorphic-call
evalScopeKit.allowNextEvalToBeUnsafe();
- let err;
- try {
// Ensure that "this" resolves to the safe global.
return apply(evaluate, globalObject, [source]);
} catch (e) {

fix(ses): Protect necessary eval admission before it has been admitted