fix(core): remove ses lockdown (#5350)

This commit is contained in:
LongYinan
2023-12-20 04:11:34 +00:00
parent e3882f9648
commit 800ea0abf1
7 changed files with 17 additions and 70 deletions
@@ -1,19 +0,0 @@
import 'ses';
if (!process.env.COVERAGE) {
lockdown({
evalTaming: 'unsafeEval',
overrideTaming: 'severe',
consoleTaming: 'unsafe',
errorTaming: 'unsafe',
errorTrapping: 'platform',
unhandledRejectionTrapping: 'report',
});
console.log('SES lockdown complete');
} else {
Object.defineProperty(globalThis, 'harden', {
value: (x: any) => Object.freeze(x),
writable: false,
});
}