diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-01-16 16:19:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 15:19:04 +0000 |
commit | 40134ffc99848c89e0ab88c03ca85b9122e2384b (patch) | |
tree | 2ac19dcf02fcc10f5065eb7bd88b04323a2062fe /core/bindings.rs | |
parent | 9d3483d4eb730cf9a8db4cb7d96dc5381518e92e (diff) |
refactor(core): rename pending_promise_exception to pending_promise_rejection (#17441)
These are technically rejections - a rejection can then raise an
exception.
Diffstat (limited to 'core/bindings.rs')
-rw-r--r-- | core/bindings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bindings.rs b/core/bindings.rs index a60db977a..96225e4cd 100644 --- a/core/bindings.rs +++ b/core/bindings.rs @@ -505,11 +505,11 @@ pub extern "C" fn promise_reject_callback(message: v8::PromiseRejectMessage) { let error = message.get_value().unwrap(); let error_global = v8::Global::new(scope, error); state - .pending_promise_exceptions + .pending_promise_rejections .insert(promise_global, error_global); } PromiseHandlerAddedAfterReject => { - state.pending_promise_exceptions.remove(&promise_global); + state.pending_promise_rejections.remove(&promise_global); } PromiseRejectAfterResolved => {} PromiseResolveAfterResolved => { |