Commit ccde6461 authored by Eric Holk's avatar Eric Holk Committed by Commit Bot

[wasm] Add regression test for chromium:827806

The bug was fixed in https://crrev.com/c/995796, but this CL adds a
regression test to make sure it stays fixed.

Bug: chromium:827806
Change-Id: I9f4aed364bbd310af4253da457887a8b8015533a
Reviewed-on: https://chromium-review.googlesource.com/993237Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Eric Holk <eholk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52409}
parent 46dfb572
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
load("test/mjsunit/wasm/wasm-constants.js");
load("test/mjsunit/wasm/wasm-module-builder.js");
try {
(function () {
let m = new WasmModuleBuilder();
m.addFunction("sub", kSig_i_ii)
m.instantiate();
})();
} catch (e) {
console.info("caught exception");
console.info(e);
}
for (let i = 0; i < 150; i++) {
var m = new WasmModuleBuilder();
m.addMemory(2);
m.instantiate();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment