summaryrefslogtreecommitdiff
path: root/bench_util/src/js_runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bench_util/src/js_runtime.rs')
-rw-r--r--bench_util/src/js_runtime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bench_util/src/js_runtime.rs b/bench_util/src/js_runtime.rs
index a801137fa..3643c805f 100644
--- a/bench_util/src/js_runtime.rs
+++ b/bench_util/src/js_runtime.rs
@@ -71,6 +71,6 @@ pub fn bench_js_async(
}
async fn inner_async(src: &str, runtime: &mut JsRuntime) {
- runtime.execute("inner_loop", src).unwrap();
+ runtime.execute_script("inner_loop", src).unwrap();
runtime.run_event_loop(false).await.unwrap();
}