diff options
| author | andy finch <andyfinch7@gmail.com> | 2019-04-04 05:33:32 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-04 05:33:32 -0400 |
| commit | 0e7311e1717edd312d371148f331fb558d9bcc4b (patch) | |
| tree | 38957fde88f8359886f4f7a00bea91668c7609b3 /core | |
| parent | 8c8576619852ee8b8095ca735f6d517a7e707e79 (diff) | |
Non-fatal compile_sync failures (#2039)
And model worker resources as Stream
Diffstat (limited to 'core')
| -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; } |
