diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-18 00:43:53 +0100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-17 18:43:53 -0500 |
commit | 5fa056e53be6d17ab746629ea0eaa89fe817141b (patch) | |
tree | c32c4ab39577a2dc14da3843e3223395c5a7ea54 /cli/fmt_errors.rs | |
parent | d7203092039d3c46ca8480ff8eecf612deb2b2f6 (diff) |
workers: minimal error handling and async module loading (#3665)
Diffstat (limited to 'cli/fmt_errors.rs')
-rw-r--r-- | cli/fmt_errors.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/fmt_errors.rs b/cli/fmt_errors.rs index 83e417fe2..9979eeb29 100644 --- a/cli/fmt_errors.rs +++ b/cli/fmt_errors.rs @@ -151,6 +151,12 @@ impl JSError { } } +impl Into<V8Exception> for JSError { + fn into(self) -> V8Exception { + self.0 + } +} + impl DisplayFormatter for JSError { fn format_category_and_code(&self) -> String { "".to_string() |