summaryrefslogtreecommitdiff
path: root/cli/ops/worker_host.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops/worker_host.rs')
-rw-r--r--cli/ops/worker_host.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/ops/worker_host.rs b/cli/ops/worker_host.rs
index 55afd6bf9..0690a3977 100644
--- a/cli/ops/worker_host.rs
+++ b/cli/ops/worker_host.rs
@@ -215,15 +215,14 @@ fn serialize_worker_event(event: WorkerEvent) -> Value {
}
});
- if let Ok(err) = error.downcast::<JSError>() {
- let exception: V8Exception = err.into();
+ if let Ok(js_error) = error.downcast::<JSError>() {
serialized_error = json!({
"type": "error",
"error": {
- "message": exception.message,
- "fileName": exception.script_resource_name,
- "lineNumber": exception.line_number,
- "columnNumber": exception.start_column,
+ "message": js_error.message,
+ "fileName": js_error.script_resource_name,
+ "lineNumber": js_error.line_number,
+ "columnNumber": js_error.start_column,
}
});
}