From e8ee5da459f6addd15b726ff5860cfb148c2c60f Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 19 Oct 2021 17:26:45 +0100 Subject: fix(core/bindings): use is_instance_of_error() instead of is_native_error() (#12479) --- core/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/error.rs') diff --git a/core/error.rs b/core/error.rs index be97a90fb..88cb06887 100644 --- a/core/error.rs +++ b/core/error.rs @@ -297,7 +297,7 @@ pub(crate) fn attach_handle_to_error( /// of `instanceof`. `Value::is_native_error()` also checks for static class /// inheritance rather than just scanning the prototype chain, which doesn't /// work with our WebIDL implementation of `DOMException`. -fn is_instance_of_error<'s>( +pub(crate) fn is_instance_of_error<'s>( scope: &mut v8::HandleScope<'s>, value: v8::Local, ) -> bool { -- cgit v1.2.3