summaryrefslogtreecommitdiff
path: root/ext/node/ops/winerror.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/ops/winerror.rs')
-rw-r--r--ext/node/ops/winerror.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/node/ops/winerror.rs b/ext/node/ops/winerror.rs
index 3a1f5be20..b0bc5b221 100644
--- a/ext/node/ops/winerror.rs
+++ b/ext/node/ops/winerror.rs
@@ -24,10 +24,11 @@
// - https://github.com/libuv/libuv/blob/master/src/win/error.c
#![allow(unused)]
-use deno_core::op;
+use deno_core::op2;
-#[op]
-fn op_node_sys_to_uv_error(err: i32) -> String {
+#[op2]
+#[string]
+pub fn op_node_sys_to_uv_error(err: i32) -> String {
let uv_err = match err {
ERROR_ACCESS_DENIED => "EACCES",
ERROR_NOACCESS => "EACCES",