Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix HEAP* deprecation messages #94442

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 9 additions & 9 deletions src/mono/wasm/runtime/dotnet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,23 @@ declare interface Int32Ptr extends NativePointer {
__brand: "Int32Ptr";
}
declare interface EmscriptenModule {
/** @deprecated Please use growableHeapI8() instead.*/
/** @deprecated Please use localHeapViewI8() instead.*/
HEAP8: Int8Array;
/** @deprecated Please use growableHeapI16() instead.*/
/** @deprecated Please use localHeapViewI16() instead.*/
HEAP16: Int16Array;
/** @deprecated Please use growableHeapI32() instead. */
/** @deprecated Please use localHeapViewI32() instead. */
HEAP32: Int32Array;
/** @deprecated Please use growableHeapI64() instead. */
/** @deprecated Please use localHeapViewI64() instead. */
HEAP64: BigInt64Array;
/** @deprecated Please use growableHeapU8() instead. */
/** @deprecated Please use localHeapViewU8() instead. */
HEAPU8: Uint8Array;
/** @deprecated Please use growableHeapU16() instead. */
/** @deprecated Please use localHeapViewU16() instead. */
HEAPU16: Uint16Array;
/** @deprecated Please use growableHeapU32() instead */
/** @deprecated Please use localHeapViewU32() instead */
HEAPU32: Uint32Array;
/** @deprecated Please use growableHeapF32() instead */
/** @deprecated Please use localHeapViewF32() instead */
HEAPF32: Float32Array;
/** @deprecated Please use growableHeapF64() instead. */
/** @deprecated Please use localHeapViewF64() instead. */
HEAPF64: Float64Array;
_malloc(size: number): VoidPtr;
_free(ptr: VoidPtr): void;
Expand Down
18 changes: 9 additions & 9 deletions src/mono/wasm/runtime/types/emscripten.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ export declare interface CharPtrPtr extends NativePointer {
}

export declare interface EmscriptenModule {
/** @deprecated Please use growableHeapI8() instead.*/
/** @deprecated Please use localHeapViewI8() instead.*/
HEAP8: Int8Array,
/** @deprecated Please use growableHeapI16() instead.*/
/** @deprecated Please use localHeapViewI16() instead.*/
HEAP16: Int16Array;
/** @deprecated Please use growableHeapI32() instead. */
/** @deprecated Please use localHeapViewI32() instead. */
HEAP32: Int32Array;
/** @deprecated Please use growableHeapI64() instead. */
/** @deprecated Please use localHeapViewI64() instead. */
HEAP64: BigInt64Array;
/** @deprecated Please use growableHeapU8() instead. */
/** @deprecated Please use localHeapViewU8() instead. */
HEAPU8: Uint8Array;
/** @deprecated Please use growableHeapU16() instead. */
/** @deprecated Please use localHeapViewU16() instead. */
HEAPU16: Uint16Array;
/** @deprecated Please use growableHeapU32() instead */
/** @deprecated Please use localHeapViewU32() instead */
HEAPU32: Uint32Array;
/** @deprecated Please use growableHeapF32() instead */
/** @deprecated Please use localHeapViewF32() instead */
HEAPF32: Float32Array;
/** @deprecated Please use growableHeapF64() instead. */
/** @deprecated Please use localHeapViewF64() instead. */
HEAPF64: Float64Array;

// this should match emcc -s EXPORTED_FUNCTIONS
Expand Down
Loading