diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-23 05:51:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 11:51:07 +0200 |
commit | d8711155ca20fb2907beed304557d0815ac56452 (patch) | |
tree | 410c23ed6d3e520a6b335b02577ad0b29b707cf4 /cli/ops/plugins.rs | |
parent | 10a174834e6e59ea055d6098a07b82a3854a2db9 (diff) |
Rename deno_core::Isolate to deno_core::CoreIsolate (#4851)
Diffstat (limited to 'cli/ops/plugins.rs')
-rw-r--r-- | cli/ops/plugins.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/ops/plugins.rs b/cli/ops/plugins.rs index f8c1b5bd2..17f366d39 100644 --- a/cli/ops/plugins.rs +++ b/cli/ops/plugins.rs @@ -3,15 +3,15 @@ use crate::fs as deno_fs; use crate::op_error::OpError; use crate::ops::json_op; use crate::state::State; -use deno_core::Isolate; +use deno_core::CoreIsolate; use deno_core::ZeroCopyBuf; use dlopen::symbor::Library; use std::ffi::OsStr; use std::path::Path; -pub type PluginInitFn = fn(isolate: &mut deno_core::Isolate); +pub type PluginInitFn = fn(isolate: &mut CoreIsolate); -pub fn init(i: &mut Isolate, s: &State) { +pub fn init(i: &mut CoreIsolate, s: &State) { i.register_op( "op_open_plugin", s.core_op(json_op(s.stateful_op2(op_open_plugin))), @@ -34,7 +34,7 @@ struct OpenPluginArgs { } pub fn op_open_plugin( - isolate: &mut deno_core::Isolate, + isolate: &mut CoreIsolate, state: &State, args: Value, _zero_copy: Option<ZeroCopyBuf>, |