diff options
author | Luca Casonato <hello@lcas.dev> | 2023-09-14 16:38:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-14 16:38:15 +0200 |
commit | 851f795001a9164572d02606587ddc5193bdfd2d (patch) | |
tree | 77a129ff766013dd9ea0cb83d6a84a40e4f1f0f7 /cli/worker.rs | |
parent | bbb348aa33b56e15f376e8e7ee7b71bd5badd936 (diff) |
fix: output traces for op sanitizer in more cases (#20494)
This adds traces for the "started outside test, closed inside test"
case.
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index ef321ff88..45968afe7 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -12,6 +12,7 @@ use deno_core::futures::FutureExt; use deno_core::located_script_name; use deno_core::parking_lot::Mutex; use deno_core::url::Url; +use deno_core::v8; use deno_core::CompiledWasmModuleStore; use deno_core::Extension; use deno_core::ModuleId; @@ -279,6 +280,17 @@ impl CliMainWorker { Ok(None) } } + + pub fn execute_script_static( + &mut self, + name: &'static str, + source_code: &'static str, + ) -> Result<v8::Global<v8::Value>, AnyError> { + self + .worker + .js_runtime + .execute_script_static(name, source_code) + } } pub struct CliMainWorkerFactory { |