Skip to content
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
3 changes: 2 additions & 1 deletion web/src/memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export class Memory {
* @returns The object type index.
*/
loadObjectTypeIndex(objectHandle: Pointer): number {
return this.loadI32(objectHandle);
// The object layout is [ref_counter (i64), type_index (i32), ...].
return this.loadI32(objectHandle + SizeOf.I64);
}
/**
* Load the type key from the type info pointer.
Expand Down
Loading