summaryrefslogtreecommitdiff
path: root/cli/ops/runtime_compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/runtime_compiler.rs')
-rw-r--r--cli/ops/runtime_compiler.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/ops/runtime_compiler.rs b/cli/ops/runtime_compiler.rs
index a9b907e28..056056746 100644
--- a/cli/ops/runtime_compiler.rs
+++ b/cli/ops/runtime_compiler.rs
@@ -3,14 +3,13 @@ use super::dispatch_json::{Deserialize, JsonOp, Value};
use crate::compilers::runtime_compile_async;
use crate::compilers::runtime_transpile_async;
use crate::op_error::OpError;
-use crate::ops::json_op;
use crate::state::State;
use deno_core::*;
use std::collections::HashMap;
pub fn init(i: &mut Isolate, s: &State) {
- i.register_op("compile", s.core_op(json_op(s.stateful_op(op_compile))));
- i.register_op("transpile", s.core_op(json_op(s.stateful_op(op_transpile))));
+ i.register_op("op_compile", s.stateful_json_op(op_compile));
+ i.register_op("op_transpile", s.stateful_json_op(op_transpile));
}
#[derive(Deserialize, Debug)]