blob: 0b15e6f4b4927f98fe38317fd521d033c2b8a861 [file] [log] [blame]
//@ skip if $architecture != "arm64" && $architecture != "x86-64"
var exception;
try {
var memory = new WebAssembly.Memory({
initial: 65536
});
new Uint8Array(memory.buffer).toString();
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED: " + exception;