summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index 5724517a0..344bb73c0 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -271,6 +271,7 @@ pub struct WebWorkerOptions {
pub blob_store: BlobStore,
pub broadcast_channel: InMemoryBroadcastChannel,
pub shared_array_buffer_store: Option<SharedArrayBufferStore>,
+ pub cpu_count: usize,
}
impl WebWorker {
@@ -412,6 +413,7 @@ impl WebWorker {
"unstableFlag": options.unstable,
"v8Version": deno_core::v8_version(),
"location": self.main_module,
+ "cpuCount": options.cpu_count,
});
let runtime_options_str =