From c9142caf8e256757ea45f9cf53ca5499c60f8230 Mon Sep 17 00:00:00 2001 From: grf53 Date: Tue, 29 Jul 2025 14:05:56 +0900 Subject: [PATCH] fix: incompatible parts with the current core --- web/src/runtime.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/runtime.ts b/web/src/runtime.ts index e0898c95bf41..162052d41b84 100644 --- a/web/src/runtime.ts +++ b/web/src/runtime.ts @@ -112,7 +112,7 @@ class FFILibrary implements Disposable { } private validateInstance(): void { - this.checkExports(["TVMWasmAllocSpace", "TVMWasmFreeSpace", "TVMFuncFree"]); + this.checkExports(["TVMWasmAllocSpace", "TVMWasmFreeSpace"]); } private checkExports(funcNames: Array): void { @@ -195,9 +195,9 @@ class RuntimeContext implements Disposable { this.ndarrayCopyFromTo = getGlobalFunc("runtime.TVMArrayCopyFromTo"); this.ndarrayCopyFromJSBytes = getGlobalFunc("tvmjs.runtime.NDArrayCopyFromBytes"); this.ndarrayCopyToJSBytes = getGlobalFunc("tvmjs.runtime.NDArrayCopyToBytes"); - this.arrayGetItem = getGlobalFunc("runtime.ArrayGetItem"); - this.arrayGetSize = getGlobalFunc("runtime.ArraySize"); - this.arrayMake = getGlobalFunc("runtime.Array"); + this.arrayGetItem = getGlobalFunc("ffi.ArrayGetItem"); + this.arrayGetSize = getGlobalFunc("ffi.ArraySize"); + this.arrayMake = getGlobalFunc("ffi.Array"); this.arrayConcat = getGlobalFunc("tvmjs.runtime.ArrayConcat"); this.getSysLib = getGlobalFunc("runtime.SystemLib"); this.arrayCacheGet = getGlobalFunc("vm.builtin.ndarray_cache.get");