From cd83f94c7f9f2a04cad2e4476dc60d8055eb3a32 Mon Sep 17 00:00:00 2001 From: Alisue Date: Tue, 14 May 2024 11:56:27 +0900 Subject: [PATCH] :bug: Fix Deno panic on invalid UTF-8 string https://github.com/denoland/deno/issues/23792 --- denops/@denops-private/cli.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/denops/@denops-private/cli.ts b/denops/@denops-private/cli.ts index 8a31b872..85d18854 100644 --- a/denops/@denops-private/cli.ts +++ b/denops/@denops-private/cli.ts @@ -4,6 +4,10 @@ import { } from "jsr:@lambdalisue/workerio@4.0.0"; import { parseArgs } from "jsr:@std/cli/parse-args"; +// Disable "Native acceleration" feature of `msgpackr` as an workaround of Deno panic. +// https://github.com/denoland/deno/issues/23792 +Deno.env.set("MSGPACKR_NATIVE_ACCELERATION_DISABLED", "true"); + const script = import.meta.resolve("./worker.ts"); async function handleConn(