mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
refactor: move op_resources and op_close to deno_core (#7539)
Moves op_close and op_resources to deno_core::ops and exports them. Adds serde dependency to deno_core and reexports it. Moves JS implementation of those ops to Deno.core and reexports them in Deno.
This commit is contained in:
parent
3421f4dbbd
commit
bda9379385
20 changed files with 85 additions and 97 deletions
|
@ -287,7 +287,8 @@ impl MainWorker {
|
|||
ops::process::init(&mut worker);
|
||||
ops::random::init(&mut worker);
|
||||
ops::repl::init(&mut worker);
|
||||
ops::resources::init(&mut worker);
|
||||
ops::reg_json_sync(&mut worker, "op_close", deno_core::op_close);
|
||||
ops::reg_json_sync(&mut worker, "op_resources", deno_core::op_resources);
|
||||
ops::signal::init(&mut worker);
|
||||
ops::timers::init(&mut worker);
|
||||
ops::tty::init(&mut worker);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue