summaryrefslogtreecommitdiff
path: root/ext/node/ops/os.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/ops/os.rs')
-rw-r--r--ext/node/ops/os.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/node/ops/os.rs b/ext/node/ops/os.rs
index 7dc1a7684..de44e857b 100644
--- a/ext/node/ops/os.rs
+++ b/ext/node/ops/os.rs
@@ -2,10 +2,10 @@
use crate::NodePermissions;
use deno_core::error::AnyError;
-use deno_core::op;
+use deno_core::op2;
use deno_core::OpState;
-#[op]
+#[op2(fast)]
pub fn op_node_os_get_priority<P>(
state: &mut OpState,
pid: u32,
@@ -21,7 +21,7 @@ where
priority::get_priority(pid)
}
-#[op]
+#[op2(fast)]
pub fn op_node_os_set_priority<P>(
state: &mut OpState,
pid: u32,
@@ -38,7 +38,8 @@ where
priority::set_priority(pid, priority)
}
-#[op]
+#[op2]
+#[string]
pub fn op_node_os_username<P>(state: &mut OpState) -> Result<String, AnyError>
where
P: NodePermissions + 'static,