From b0a23beb8fae964be3cdd8c23c38af66257d34c7 Mon Sep 17 00:00:00 2001 From: andy finch Date: Mon, 1 Apr 2019 15:09:59 -0400 Subject: Add web worker JS API (#1993) * Refactored the way worker polling is scheduled and errors are handled. * Share the worker future as a Shared --- core/js_errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/js_errors.rs') 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, -- cgit v1.2.3