summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-04 17:03:14 -0700
committerGitHub <noreply@github.com>2024-02-04 17:03:14 -0700
commit56f58a047e3c1cc27ff55988f25173cc18ef6aeb (patch)
tree2a7a288c385d54d1384c00c20cdbc168a046218f /runtime
parent0f7f98795129f3f6bef51d08da9accca5e9ca9cc (diff)
chore: bump deno core (#22243)
Migrations: - Error registration no longer required for Interrupted or BadResource (these are core exception) - `include_js_files!`/`ExtensionFileSource` changes
Diffstat (limited to 'runtime')
-rw-r--r--runtime/js/99_main.js2
-rw-r--r--runtime/shared.rs7
2 files changed, 1 insertions, 8 deletions
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");
}
}