summaryrefslogtreecommitdiff
path: root/core/js_errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/js_errors.rs')
-rw-r--r--core/js_errors.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js_errors.rs b/core/js_errors.rs
index ee3272baf..442d8f1d8 100644
--- a/core/js_errors.rs
+++ b/core/js_errors.rs
@@ -40,6 +40,12 @@ pub struct JSError {
pub frames: Vec<StackFrame>,
}
+impl std::error::Error for JSError {
+ fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
+ None
+ }
+}
+
impl fmt::Display for StackFrame {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
// Note when we print to string, we change from 0-indexed to 1-indexed.