mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
chore: upgrade deno_core to 0.249.0 (#22058)
This commit is contained in:
parent
5aa25f08be
commit
13d5c6420e
4 changed files with 50 additions and 33 deletions
|
@ -115,7 +115,17 @@ pub fn get_types_declaration_file_text() -> String {
|
|||
}
|
||||
|
||||
fn get_asset_texts_from_new_runtime() -> Result<Vec<AssetText>, AnyError> {
|
||||
deno_core::extension!(deno_cli_tsc, ops_fn = deno_ops);
|
||||
deno_core::extension!(
|
||||
deno_cli_tsc,
|
||||
ops = [
|
||||
op_create_hash,
|
||||
op_emit,
|
||||
op_is_node_file,
|
||||
op_load,
|
||||
op_resolve,
|
||||
op_respond,
|
||||
]
|
||||
);
|
||||
|
||||
// the assets are stored within the typescript isolate, so take them out of there
|
||||
let mut runtime = JsRuntime::new(RuntimeOptions {
|
||||
|
@ -805,7 +815,14 @@ pub fn exec(request: Request) -> Result<Response, AnyError> {
|
|||
.collect();
|
||||
|
||||
deno_core::extension!(deno_cli_tsc,
|
||||
ops_fn = deno_ops,
|
||||
ops = [
|
||||
op_create_hash,
|
||||
op_emit,
|
||||
op_is_node_file,
|
||||
op_load,
|
||||
op_resolve,
|
||||
op_respond,
|
||||
],
|
||||
options = {
|
||||
request: Request,
|
||||
root_map: HashMap<String, Url>,
|
||||
|
@ -865,18 +882,6 @@ pub fn exec(request: Request) -> Result<Response, AnyError> {
|
|||
}
|
||||
}
|
||||
|
||||
deno_core::ops!(
|
||||
deno_ops,
|
||||
[
|
||||
op_create_hash,
|
||||
op_emit,
|
||||
op_is_node_file,
|
||||
op_load,
|
||||
op_resolve,
|
||||
op_respond,
|
||||
]
|
||||
);
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::Diagnostic;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue