diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/ops/random.rs | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
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), ); } |