summaryrefslogtreecommitdiff
path: root/core/error.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-10-19 17:26:45 +0100
committerGitHub <noreply@github.com>2021-10-19 18:26:45 +0200
commite8ee5da459f6addd15b726ff5860cfb148c2c60f (patch)
treead5b1d2878d70a4fc4a8904ef0ae0fc1eca608b7 /core/error.rs
parentd6062b265331b88efcbe740741bd93714ec11026 (diff)
fix(core/bindings): use is_instance_of_error() instead of is_native_error() (#12479)
Diffstat (limited to 'core/error.rs')
-rw-r--r--core/error.rs2
1 files changed, 1 insertions, 1 deletions
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<v8::Value>,
) -> bool {