diff options
author | andy finch <andyfinch7@gmail.com> | 2019-04-01 15:09:59 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-04-01 15:09:59 -0400 |
commit | b0a23beb8fae964be3cdd8c23c38af66257d34c7 (patch) | |
tree | 8f7875c8ca059dfb0a3ade4da7bfb94e57d6e1aa /core | |
parent | 659acadf77fdbeef8579a37839a464feb408437a (diff) |
Add web worker JS API (#1993)
* Refactored the way worker polling is scheduled and errors are handled.
* Share the worker future as a Shared
Diffstat (limited to 'core')
-rw-r--r-- | core/js_errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js_errors.rs b/core/js_errors.rs index e8fb0701c..ee3272baf 100644 --- a/core/js_errors.rs +++ b/core/js_errors.rs @@ -13,7 +13,7 @@ use serde_json; use std::fmt; use std::str; -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone)] pub struct StackFrame { pub line: i64, // zero indexed pub column: i64, // zero indexed @@ -24,7 +24,7 @@ pub struct StackFrame { pub is_wasm: bool, } -#[derive(Debug, PartialEq)] +#[derive(Debug, PartialEq, Clone)] pub struct JSError { pub message: String, |