From 91b606aaae23bcb790b55adc5fe70a182a37d564 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 25 Feb 2020 09:14:27 -0500 Subject: Clean up how we use opIds (#4118) --- cli/ops/runtime_compiler.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/ops/runtime_compiler.rs') 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)] -- cgit v1.2.3