mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-25 05:35:41 +00:00
feat: safe mode updates
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user