From ded855ac1bc4bc8ce4f339e2395b1c59aa670a66 Mon Sep 17 00:00:00 2001 From: zhaohappy <2281756061@qq.com> Date: Tue, 10 Dec 2024 14:54:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=20firfox=20?= =?UTF-8?q?=E4=B8=8A=E5=81=B6=E7=8E=B0=E6=97=A0=E6=B3=95=E7=BC=96=E8=AF=91?= =?UTF-8?q?=20wasm=20=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/avutil/function/compileResource.ts | 4 +--- src/cheap | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/avutil/function/compileResource.ts b/src/avutil/function/compileResource.ts index 227ceb26..294f0517 100644 --- a/src/avutil/function/compileResource.ts +++ b/src/avutil/function/compileResource.ts @@ -25,7 +25,6 @@ import * as cheapConfig from 'cheap/config' import compile, { WebAssemblyResource } from 'cheap/webassembly/compiler' import * as is from 'common/util/is' -import browser from 'common/util/browser' export default async function compileResource(wasmUrl: string | ArrayBuffer | WebAssemblyResource, thread: boolean = false) { let resource: WebAssemblyResource @@ -37,8 +36,7 @@ export default async function compileResource(wasmUrl: string | ArrayBuffer | We if (cheapConfig.USE_THREADS && defined(ENABLE_THREADS) && thread) { resource.threadModule = await compile( { - // firefox 使用 arraybuffer 会卡主 - source: browser.firefox ? wasmUrl : resource.buffer + source: resource.buffer }, { child: true diff --git a/src/cheap b/src/cheap index 1e77ffdd..603c7012 160000 --- a/src/cheap +++ b/src/cheap @@ -1 +1 @@ -Subproject commit 1e77ffdd9b784c138e6c84090a15f8545bdff854 +Subproject commit 603c70125b0beed9bf1beb4dddcac202a2458936