Skip to content

Commit

Permalink
chore: upgrade to rust 1.80 (denoland#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyarohith authored Jul 29, 2024
1 parent ea19932 commit 2e113fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/runtime/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ fn import_meta_resolve(
rv.set(resolved_val);
}
Err(err) => {
throw_type_error(scope, &err.to_string());
throw_type_error(scope, err.to_string());
}
};
}
Expand Down
6 changes: 3 additions & 3 deletions core/runtime/exception_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ impl ExceptionState {
/// Notes from ECMAScript's `HostPromiseRejectionTracker` operation:
///
/// - HostPromiseRejectionTracker is called with the operation argument set to "reject" when a promise is rejected
/// without any handlers, or "handle" when a handler is added to a previously rejected promise for the first time.
/// without any handlers, or "handle" when a handler is added to a previously rejected promise for the first time.
/// - Host environments can use this operation to track promise rejections without causing abrupt completion.
/// - Implementations may notify developers of unhandled rejections and invalidate notifications if new handlers are attached.
/// - If operation is "handle", an implementation should not hold a reference to promise in a way that would
/// interfere with garbage collection.
/// interfere with garbage collection.
/// - An implementation may hold a reference to promise if operation is "reject", since it is expected that rejections
/// will be rare and not on hot code paths.
/// will be rare and not on hot code paths.
pub fn track_promise_rejection(
&self,
scope: &mut v8::HandleScope,
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "1.79.0"
channel = "1.80.0"
components = ["rustfmt", "clippy"]

0 comments on commit 2e113fc

Please sign in to comment.