mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
19 lines
511 B
Rust
19 lines
511 B
Rust
|
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
||
|
use deno_url::op_url_parse;
|
||
|
use deno_url::op_url_parse_search_params;
|
||
|
use deno_url::op_url_stringify_search_params;
|
||
|
|
||
|
pub fn init(rt: &mut deno_core::JsRuntime) {
|
||
|
super::reg_json_sync(rt, "op_url_parse", op_url_parse);
|
||
|
super::reg_json_sync(
|
||
|
rt,
|
||
|
"op_url_parse_search_params",
|
||
|
op_url_parse_search_params,
|
||
|
);
|
||
|
super::reg_json_sync(
|
||
|
rt,
|
||
|
"op_url_stringify_search_params",
|
||
|
op_url_stringify_search_params,
|
||
|
);
|
||
|
}
|