summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/web_worker.rs2
-rw-r--r--runtime/worker.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index b21833a2e..a69c384ab 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -345,7 +345,7 @@ pub struct WebWorkerOptions {
pub npm_resolver: Option<Arc<dyn deno_node::NpmResolver>>,
pub create_web_worker_cb: Arc<ops::worker_host::CreateWebWorkerCb>,
pub format_js_error_fn: Option<Arc<FormatJsErrorFn>>,
- pub source_map_getter: Option<Box<dyn SourceMapGetter>>,
+ pub source_map_getter: Option<Rc<dyn SourceMapGetter>>,
pub worker_type: WebWorkerType,
pub maybe_inspector_server: Option<Arc<InspectorServer>>,
pub get_error_class_fn: Option<GetErrorClassFn>,
diff --git a/runtime/worker.rs b/runtime/worker.rs
index 449c50e10..b6aff3c15 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -153,7 +153,7 @@ pub struct WorkerOptions {
pub format_js_error_fn: Option<Arc<FormatJsErrorFn>>,
/// Source map reference for errors.
- pub source_map_getter: Option<Box<dyn SourceMapGetter>>,
+ pub source_map_getter: Option<Rc<dyn SourceMapGetter>>,
pub maybe_inspector_server: Option<Arc<InspectorServer>>,
// If true, the worker will wait for inspector session and break on first
// statement of user code. Takes higher precedence than