summaryrefslogtreecommitdiff
path: root/ext/node/lib.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-02-20 18:47:42 +0100
committerGitHub <noreply@github.com>2023-02-20 18:47:42 +0100
commit88f6fc6a1684326ae1f947ea8ec24ad0bff0f449 (patch)
tree0fa821ef0ff1ff5120ce43bf0d6052767d1f792b /ext/node/lib.rs
parentea7ca00c895c401af57a7201f3c41524333e7939 (diff)
refactor: use ops for idna & punycode (#17817)
Towards https://github.com/denoland/deno/issues/17809
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r--ext/node/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs
index fc61dc317..fb389d850 100644
--- a/ext/node/lib.rs
+++ b/ext/node/lib.rs
@@ -14,6 +14,7 @@ use std::rc::Rc;
mod crypto;
pub mod errors;
+mod idna;
mod ops;
mod package_json;
mod path;
@@ -376,6 +377,10 @@ pub fn init_polyfill() -> Extension {
winerror::op_node_sys_to_uv_error::decl(),
v8::op_v8_cached_data_version_tag::decl(),
v8::op_v8_get_heap_statistics::decl(),
+ idna::op_node_idna_domain_to_ascii::decl(),
+ idna::op_node_idna_domain_to_unicode::decl(),
+ idna::op_node_idna_punycode_decode::decl(),
+ idna::op_node_idna_punycode_encode::decl(),
op_node_build_os::decl(),
])
.build()