summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2022-11-07 17:39:48 -0800
committerGitHub <noreply@github.com>2022-11-08 02:39:48 +0100
commit3019c45f87c1825d10ab033e1c51832cafefd5b1 (patch)
tree37227c4f2a52192e11b6e5ad6103bd770a983041 /runtime/worker.rs
parent0d52945d43601c6ca228d89f5b4f9cb0acb84794 (diff)
refactor: simplify deno_core's grab_global and ensure_objs (#16564)
- refactor: remove JsRuntime::ensure_objs - refactor: Replace JsRuntime::grab_global with JsRuntime::eval
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 98fec19af..de15c9f6f 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -101,7 +101,7 @@ fn grab_cb(
scope: &mut v8::HandleScope,
path: &str,
) -> v8::Global<v8::Function> {
- let cb = JsRuntime::grab_global::<v8::Function>(scope, path)
+ let cb = JsRuntime::eval::<v8::Function>(scope, path)
.unwrap_or_else(|| panic!("{} must be defined", path));
v8::Global::new(scope, cb)
}