feat: safe mode updates

This commit is contained in:
Anoop M D
2024-08-11 18:02:05 +05:30
parent 751c7aa16d
commit 6d01c46d50
12 changed files with 34 additions and 65 deletions

View File

@@ -90,14 +90,6 @@ class ScriptRuntime {
}
if (this.runtime === 'isolated-vm') {
// Reuses the same instance of IsolatedVMAsync
// TODO: Test for performance
// await isolatedVMAsyncInstance.execute({
// script,
// context,
// modules: {}, // todo: module support?
// scriptType: 'jsScript'
// });
await executeInIsolatedVMAsync({
script: script,
context: context,
@@ -211,14 +203,6 @@ class ScriptRuntime {
}
if (this.runtime === 'isolated-vm') {
// Reuses the same instance of IsolatedVMAsync
// TODO: Test for performance
// await isolatedVMAsyncInstance.execute({
// script,
// context,
// modules: {}, // todo: module support?
// scriptType: 'jsScript'
// });
await executeInIsolatedVMAsync({
script: script,
context: context,