Revision 21be95d42621e2f7f4e2a211ce9d4a50d925aa73 authored by Luke Bjerring on 30 March 2018, 22:10:25 UTC, committed by Philip Jägenstedt on 30 March 2018, 22:17:29 UTC
1 parent 771a209
many-memories.window.js
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This test makes sure browsers behave reasonably when asked to allocate a
// larger number of WebAssembly.Memory objects at once.
test(function() {
let memories = [];
try {
for (let i = 0; i < 20; i++) {
memories.push(new WebAssembly.Memory({initial: 1}));
}
} catch (e) {
if (e instanceof RangeError) {
return;
}
throw e;
}
}, "WebAssembly#CreateManyMemories");
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...