From 56f58a047e3c1cc27ff55988f25173cc18ef6aeb Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sun, 4 Feb 2024 17:03:14 -0700 Subject: chore: bump deno core (#22243) Migrations: - Error registration no longer required for Interrupted or BadResource (these are core exception) - `include_js_files!`/`ExtensionFileSource` changes --- runtime/js/99_main.js | 2 -- runtime/shared.rs | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'runtime') diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js index 3e9e9c6b1..3022635ec 100644 --- a/runtime/js/99_main.js +++ b/runtime/js/99_main.js @@ -378,11 +378,9 @@ core.registerErrorClass("BrokenPipe", errors.BrokenPipe); core.registerErrorClass("AlreadyExists", errors.AlreadyExists); core.registerErrorClass("InvalidData", errors.InvalidData); core.registerErrorClass("TimedOut", errors.TimedOut); -core.registerErrorClass("Interrupted", errors.Interrupted); core.registerErrorClass("WouldBlock", errors.WouldBlock); core.registerErrorClass("WriteZero", errors.WriteZero); core.registerErrorClass("UnexpectedEof", errors.UnexpectedEof); -core.registerErrorClass("BadResource", errors.BadResource); core.registerErrorClass("Http", errors.Http); core.registerErrorClass("Busy", errors.Busy); core.registerErrorClass("NotSupported", errors.NotSupported); diff --git a/runtime/shared.rs b/runtime/shared.rs index 1f24fec0b..35712dfb3 100644 --- a/runtime/shared.rs +++ b/runtime/shared.rs @@ -56,12 +56,7 @@ extension!(runtime, customizer = |ext: &mut Extension| { #[cfg(not(feature = "exclude_runtime_main_js"))] { - ext.esm_files.to_mut().push(ExtensionFileSource { - specifier: "ext:runtime_main/js/99_main.js", - code: ExtensionFileSourceCode::IncludedInBinary( - include_str!("./js/99_main.js"), - ), - }); + ext.esm_files.to_mut().push(ExtensionFileSource::new("ext:runtime_main/js/99_main.js", include_str!("./js/99_main.js"))); ext.esm_entry_point = Some("ext:runtime_main/js/99_main.js"); } } -- cgit v1.2.3