We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3be151f + d83e87b commit ad98744Copy full SHA for ad98744
crates/base/src/commands.rs
@@ -1,5 +1,6 @@
1
use crate::server::{Server, ServerCodes, WorkerEntrypoints};
2
use anyhow::Error;
3
+use deno_core::JsRuntime;
4
use tokio::sync::mpsc::Sender;
5
6
#[allow(clippy::too_many_arguments)]
@@ -13,6 +14,11 @@ pub async fn start_server(
13
14
callback_tx: Option<Sender<ServerCodes>>,
15
entrypoints: WorkerEntrypoints,
16
) -> Result<(), Error> {
17
+ // NOTE(denoland/deno/20495): Due to the new PKU (Memory Protection Keys)
18
+ // feature introduced in V8 11.6, We need to initialize the V8 platform on
19
+ // the main thread that spawns V8 isolates.
20
+ JsRuntime::init_platform(None);
21
+
22
let mut server = Server::new(
23
ip,
24
port,
0 commit comments