Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Expose memory accessors via INTERNAL
  • Loading branch information
kg committed Nov 9, 2021
commit 5712dc0bc99d4a88bf3e64faa05c730df8ec938c
3 changes: 3 additions & 0 deletions src/mono/wasm/runtime/exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import { mono_wasm_release_cs_owned_object } from "./gc-handles";
import { mono_wasm_web_socket_open, mono_wasm_web_socket_send, mono_wasm_web_socket_receive, mono_wasm_web_socket_close, mono_wasm_web_socket_abort } from "./web-socket";
import cwraps from "./cwraps";
import { ArgsMarshalString } from "./method-binding";
import { __AllAccessors__ } from "./memory";

export const MONO: MONO = <any>{
// current "public" MONO API
Expand Down Expand Up @@ -252,6 +253,8 @@ export const INTERNAL: any = {
mono_wasm_raise_debug_event,
mono_wasm_runtime_is_ready: runtimeHelpers.mono_wasm_runtime_is_ready,
};
// Expose all the get/set methods via INTERNAL
Object.assign(INTERNAL, __AllAccessors__);

// this represents visibility in the javascript
// like https://github.com/dotnet/aspnetcore/blob/main/src/Components/Web.JS/src/Platform/Mono/MonoTypes.ts
Expand Down