Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Feb 18, 2024
1 parent 1f8b229 commit 12c7197
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public unsafe void Initialize()
// also this is called multiple times
JSProxyContext.JSImportWithUnknownContext();
slot.ContextHandle = IntPtr.Zero;
slot.ReceiverShouldFree = false;
#endif
}

Expand All @@ -88,6 +89,7 @@ internal unsafe void InitializeWithContext(JSProxyContext knownProxyContext)
{
slot.Type = MarshalerType.None;
slot.ContextHandle = knownProxyContext.ContextHandle;
slot.ReceiverShouldFree = false;
}
#endif
// this is always called from ToManaged() marshaler
Expand Down
1 change: 1 addition & 0 deletions src/mono/browser/runtime/marshal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function is_args_exception(args: JSMarshalerArguments): boolean {
}

export function is_receiver_should_free(args: JSMarshalerArguments): boolean {
if (WasmEnableThreads) return false;
mono_assert(args, "Null args");
return getB32(<any>args + 20);
}
Expand Down

0 comments on commit 12c7197

Please sign in to comment.