chore: split web op crate (#9635)
This commit starts splitting out the deno_web op crate into multiple
smaller crates. This commit splits out WebIDL and URL API, but in the
future I want to split out each spec into its own crate. That means we
will have (in rough order of loading): `webidl`, `dom`, `streams`,
`console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and
`webgpu` crates.
2021-03-12 10:17:18 -05:00
|
|
|
// 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) {
|
2021-04-12 15:55:05 -04:00
|
|
|
super::reg_sync(rt, "op_url_parse", op_url_parse);
|
|
|
|
super::reg_sync(rt, "op_url_parse_search_params", op_url_parse_search_params);
|
|
|
|
super::reg_sync(
|
chore: split web op crate (#9635)
This commit starts splitting out the deno_web op crate into multiple
smaller crates. This commit splits out WebIDL and URL API, but in the
future I want to split out each spec into its own crate. That means we
will have (in rough order of loading): `webidl`, `dom`, `streams`,
`console`, `encoding`, `url`, `file`, `fetch`, `websocket`, and
`webgpu` crates.
2021-03-12 10:17:18 -05:00
|
|
|
rt,
|
|
|
|
"op_url_stringify_search_params",
|
|
|
|
op_url_stringify_search_params,
|
|
|
|
);
|
|
|
|
}
|