This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 3b60f1c9b8 [Web] Fix incompatible part after FFI updates (#18168)
3b60f1c9b8 is described below
commit 3b60f1c9b8907dcf5d39a033876020e96e6915b2
Author: Park Woorak <[email protected]>
AuthorDate: Tue Jul 29 20:37:28 2025 +0900
[Web] Fix incompatible part after FFI updates (#18168)
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 e0898c95bf..162052d41b 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<string>): 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");