mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 07:01:16 +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
|
@ -2,7 +2,6 @@
|
|||
|
||||
((window) => {
|
||||
const core = window.Deno.core;
|
||||
const { close } = window.__bootstrap.resources;
|
||||
const { read, readSync, write, writeSync } = window.__bootstrap.io;
|
||||
const { pathFromURL } = window.__bootstrap.util;
|
||||
|
||||
|
@ -104,7 +103,7 @@
|
|||
}
|
||||
|
||||
close() {
|
||||
close(this.rid);
|
||||
core.close(this.rid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,7 +121,7 @@
|
|||
}
|
||||
|
||||
close() {
|
||||
close(this.rid);
|
||||
core.close(this.rid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +139,7 @@
|
|||
}
|
||||
|
||||
close() {
|
||||
close(this.rid);
|
||||
core.close(this.rid);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -158,7 +157,7 @@
|
|||
}
|
||||
|
||||
close() {
|
||||
close(this.rid);
|
||||
core.close(this.rid);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue