summaryrefslogtreecommitdiff
path: root/core/js_errors.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-26 11:56:34 -0400
committerBert Belder <bertbelder@gmail.com>2019-04-02 20:10:08 +0200
commit2b0f553e2e1b83ed8ff605f2ea25e2c31bb4c889 (patch)
tree9495fb1ac2360c8a782f9b27bb2b2bd6c130a3d7 /core/js_errors.rs
parent5f1e42f8ac3a051e83908dcdd0c1f9735b32a79a (diff)
Add deno_core::RecursiveLoad for async module loading (#2034)
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.