summaryrefslogtreecommitdiff
path: root/cli/ops/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/errors.rs')
-rw-r--r--cli/ops/errors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/ops/errors.rs b/cli/ops/errors.rs
index 5dc4026f7..b3591b6f9 100644
--- a/cli/ops/errors.rs
+++ b/cli/ops/errors.rs
@@ -15,8 +15,8 @@ use std::collections::HashMap;
use std::sync::Arc;
pub fn init(rt: &mut deno_core::JsRuntime) {
- super::reg_json_sync(rt, "op_apply_source_map", op_apply_source_map);
- super::reg_json_sync(rt, "op_format_diagnostic", op_format_diagnostic);
+ super::reg_sync(rt, "op_apply_source_map", op_apply_source_map);
+ super::reg_sync(rt, "op_format_diagnostic", op_format_diagnostic);
}
#[derive(Deserialize)]