swh:1:snp:b37d435721bbd450624165f334724e3585346499
Raw File
Tip revision: 3fed6eade6b0e342edd1f074adabd1b2ff76f1e1 authored by Hwanseung Lee on 14 March 2018, 01:43:17 UTC
[css-typed-om] support break-after, break-before, break-inside
Tip revision: 3fed6ea
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");
back to top