Skip to content

Commit bbb5902

Browse files
authored
Fix JavaScript core object creation and interop binding. (#37885)
- Missing parameter for ownsHandle.
1 parent 71ef021 commit bbb5902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/wasm/runtime/binding_support.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ var BindingSupportLib = {
899899
if (typeof ___mono_wasm_global___ !== "undefined" && ___mono_wasm_global___ === obj)
900900
ownsHandle = false;
901901

902-
gc_handle = obj.__mono_gchandle__ = this.wasm_binding_obj_new(handle + 1, typeof wasm_type === "undefined" ? -1 : wasm_type);
902+
gc_handle = obj.__mono_gchandle__ = this.wasm_binding_obj_new(handle + 1, ownsHandle, typeof wasm_type === "undefined" ? -1 : wasm_type);
903903
this.mono_wasm_object_registry[handle] = obj;
904904

905905
}

0 commit comments

Comments
 (0)