v8/test/mjsunit/regress/wasm/regress-875556.js
Manos Koukoutos 77f3e88a7c [wasm][test] Remove obsolete flags
--experimental-wasm-mv has been removed, and --wasm-loop-unrolling is on
by default.

Change-Id: I094870765031ef46fcec95e9071333e4e80f407b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3302805
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78140}
2021-11-29 21:16:57 +00:00

20 lines
580 B
JavaScript

// 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.
// Flags: --expose-wasm
d8.file.execute('test/mjsunit/wasm/wasm-module-builder.js');
(function() {
const builder = new WasmModuleBuilder();
// Generate function 1 (out of 2).
sig1 = makeSig([kWasmI32], []);
builder.addFunction("main", sig1).addBodyWithEnd([
// signature: v_i
// body:
kExprBlock,
]);
assertThrows(function() { builder.instantiate(); }, WebAssembly.CompileError);
})();