summaryrefslogtreecommitdiff
path: root/runtime/ops/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r--runtime/ops/io.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/ops/io.rs b/runtime/ops/io.rs
index f8ab92704..0e4e3f42a 100644
--- a/runtime/ops/io.rs
+++ b/runtime/ops/io.rs
@@ -96,13 +96,13 @@ lazy_static::lazy_static! {
}
pub fn init(rt: &mut JsRuntime) {
- super::reg_bin_async(rt, "op_read_async", op_read_async);
- super::reg_bin_async(rt, "op_write_async", op_write_async);
+ super::reg_async(rt, "op_read_async", op_read_async);
+ super::reg_async(rt, "op_write_async", op_write_async);
- super::reg_bin_sync(rt, "op_read_sync", op_read_sync);
- super::reg_bin_sync(rt, "op_write_sync", op_write_sync);
+ super::reg_sync(rt, "op_read_sync", op_read_sync);
+ super::reg_sync(rt, "op_write_sync", op_write_sync);
- super::reg_json_async(rt, "op_shutdown", op_shutdown);
+ super::reg_async(rt, "op_shutdown", op_shutdown);
}
pub fn get_stdio() -> (