mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Add web worker JS API (#1993)
* Refactored the way worker polling is scheduled and errors are handled. * Share the worker future as a Shared
This commit is contained in:
parent
659acadf77
commit
b0a23beb8f
28 changed files with 1013 additions and 257 deletions
|
@ -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,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue