summaryrefslogtreecommitdiff
path: root/bench_util/js_runtime.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-12-13 08:07:26 -0700
committerGitHub <noreply@github.com>2023-12-13 08:07:26 -0700
commit76a6ea57753be420398d3eba8f313a6c98eab8c3 (patch)
tree66c95d582b711aa4f4234943f5526b98c8176210 /bench_util/js_runtime.rs
parent461ef6bdd80347caa12934c2c16337bc8d40d9a4 (diff)
refactor(cli): update to new deno_core promise/call methods (#21519)
Diffstat (limited to 'bench_util/js_runtime.rs')
-rw-r--r--bench_util/js_runtime.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/bench_util/js_runtime.rs b/bench_util/js_runtime.rs
index a12e6ca62..3de4bf787 100644
--- a/bench_util/js_runtime.rs
+++ b/bench_util/js_runtime.rs
@@ -3,6 +3,7 @@ use bencher::Bencher;
use deno_core::v8;
use deno_core::Extension;
use deno_core::JsRuntime;
+use deno_core::PollEventLoopOptions;
use deno_core::RuntimeOptions;
use crate::profiling::is_profiling;
@@ -116,5 +117,8 @@ pub fn bench_js_async_with(
async fn inner_async(src: &'static str, runtime: &mut JsRuntime) {
runtime.execute_script_static("inner_loop", src).unwrap();
- runtime.run_event_loop(false).await.unwrap();
+ runtime
+ .run_event_loop(PollEventLoopOptions::default())
+ .await
+ .unwrap();
}