summaryrefslogtreecommitdiff
path: root/core/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/error.rs')
-rw-r--r--core/error.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/error.rs b/core/error.rs
index 7af6ad375..626f9b6f2 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -209,7 +209,7 @@ impl JsError {
fn inner_from_v8_exception<'a>(
scope: &'a mut v8::HandleScope,
exception: v8::Local<'a, v8::Value>,
- mut seen: HashSet<v8::Local<'a, v8::Value>>,
+ mut seen: HashSet<v8::Local<'a, v8::Object>>,
) -> Self {
// Create a new HandleScope because we're creating a lot of new local
// handles below.
@@ -254,10 +254,10 @@ impl JsError {
}
});
let cause = cause.and_then(|cause| {
- if cause.is_undefined() || seen.contains(&cause) {
+ if cause.is_undefined() || seen.contains(&exception) {
None
} else {
- seen.insert(cause);
+ seen.insert(exception);
Some(Box::new(JsError::inner_from_v8_exception(
scope, cause, seen,
)))