summaryrefslogtreecommitdiff
path: root/core/bindings.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/bindings.rs')
-rw-r--r--core/bindings.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/bindings.rs b/core/bindings.rs
index 6fa9f745b..a93a3e746 100644
--- a/core/bindings.rs
+++ b/core/bindings.rs
@@ -363,6 +363,8 @@ pub extern "C" fn promise_reject_callback(message: v8::PromiseRejectMessage) {
}
}
+ // TODO(bartlomieju): remove this whole block, `js_uncaught_exception_cb` is
+ // not needed anymore
if let Some(exception) = tc_scope.exception() {
if let Some(js_uncaught_exception_cb) = js_uncaught_exception_cb {
tc_scope.reset(); // Cancel pending exception.