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
4 changes: 4 additions & 0 deletions src/runtime_init_memory.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ if (!ENVIRONMENT_IS_PTHREAD) {
'shared': true,
#endif
#if MEMORY64 == 1
'address': 'i64',
// TODO(sbc): remove this alias for `address` once both firefox and
// chrome roll out the spec change.
// See https://github.com/WebAssembly/memory64/pull/92
'index': 'i64',
#endif
});
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var toIndexType = (function() {
var bigintMemoryBounds = 1;
try {
/** @suppress {checkTypes} */
new WebAssembly.Memory({'initial': 1n, 'index': 'i64'});
new WebAssembly.Memory({'initial': 1n, 'index': 'i64', 'address': 'i64'});
} catch (e) {
bigintMemoryBounds = 0;
}
Expand Down
Loading