Skip to content

Commit

Permalink
Fix JavaScript core object creation and interop binding. (#37885)
Browse files Browse the repository at this point in the history
-  Missing parameter for ownsHandle.
  • Loading branch information
kjpou1 authored Jun 16, 2020
1 parent 71ef021 commit bbb5902
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/wasm/runtime/binding_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ var BindingSupportLib = {
if (typeof ___mono_wasm_global___ !== "undefined" && ___mono_wasm_global___ === obj)
ownsHandle = false;

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

}
Expand Down

0 comments on commit bbb5902

Please sign in to comment.