summaryrefslogtreecommitdiff
path: root/cli/ops/resources.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/resources.rs')
-rw-r--r--cli/ops/resources.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/ops/resources.rs b/cli/ops/resources.rs
index 787894c2c..3031725e2 100644
--- a/cli/ops/resources.rs
+++ b/cli/ops/resources.rs
@@ -1,12 +1,11 @@
// 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::*;
pub fn init(i: &mut Isolate, s: &State) {
- i.register_op("resources", s.core_op(json_op(s.stateful_op(op_resources))));
+ i.register_op("op_resources", s.stateful_json_op(op_resources));
}
fn op_resources(