diff options
Diffstat (limited to 'cli/ops/random.rs')
-rw-r--r-- | cli/ops/random.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/ops/random.rs b/cli/ops/random.rs index 436b4d4fa..4430aa9c5 100644 --- a/cli/ops/random.rs +++ b/cli/ops/random.rs @@ -1,7 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. use super::dispatch_json::{JsonOp, Value}; use crate::op_error::OpError; -use crate::ops::json_op; use crate::state::State; use deno_core::*; use rand::thread_rng; @@ -9,8 +8,8 @@ use rand::Rng; pub fn init(i: &mut Isolate, s: &State) { i.register_op( - "get_random_values", - s.core_op(json_op(s.stateful_op(op_get_random_values))), + "op_get_random_values", + s.stateful_json_op(op_get_random_values), ); } |