diff options
Diffstat (limited to 'core/js_errors.rs')
-rw-r--r-- | core/js_errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js_errors.rs b/core/js_errors.rs index 442d8f1d8..dcd434e48 100644 --- a/core/js_errors.rs +++ b/core/js_errors.rs @@ -193,7 +193,10 @@ impl JSError { return None; } let v = v.unwrap(); + Self::from_json_value(v) + } + pub fn from_json_value(v: serde_json::Value) -> Option<Self> { if !v.is_object() { return None; } |