-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: bump deno_core and update tests #21467
Conversation
6e322e8
to
ab36d6c
Compare
@@ -4,4 +4,5 @@ console.log("Starting the child worker"); | |||
|
|||
setTimeout(() => { | |||
console.log("The child worker survived the death of the parent!!!"); | |||
Deno.exit(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoids the test spinning forever if it fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea
@@ -9,25 +9,6 @@ use deno_core::error::JsError; | |||
use deno_core::error::JsStackFrame; | |||
use std::fmt::Write as _; | |||
|
|||
/// Compares all properties of JsError, except for JsError::cause. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved to deno_core
@@ -182,6 +182,7 @@ impl WebWorkerInternalHandle { | |||
/// This function will set terminated to true, terminate the isolate and close the message channel | |||
pub fn terminate(&mut self) { | |||
self.cancel.cancel(); | |||
self.terminate_waker.wake(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discovered this was necessary with @bartlomieju
cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out
Outdated
Show resolved
Hide resolved
@@ -4,4 +4,5 @@ console.log("Starting the child worker"); | |||
|
|||
setTimeout(() => { | |||
console.log("The child worker survived the death of the parent!!!"); | |||
Deno.exit(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea
// Add a callback for "error" event - it will be dispatched | ||
// if error is thrown during dispatch of "unhandledrejection" | ||
// event. | ||
globalThis_.addEventListener("error", errorEventCb); | ||
globalThis_.dispatchEvent(rejectionEvent); | ||
globalThis_.removeEventListener("error", errorEventCb); | ||
|
||
// If event was not yet prevented, try handing it off to Node compat layer | ||
// (if it was initialized) | ||
if ( | ||
!rejectionEvent.defaultPrevented && | ||
typeof internals.nodeProcessUnhandledRejectionCallback !== "undefined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to see so much complexity removed. Pinging @igorzi and @satyarohith that you will need to update this bit on your side as well.
b5e12db
to
d49dd37
Compare
/bench http[minimal,realistic] |
http[minimal]
http[realistic]
start: id: server: |
Landing changes required for denoland/deno_core#359
We need to update 99_main.js and a whole load of tests.
API changes: