2018-03-08 14:39:47 +00:00
|
|
|
// 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-module-builder.js');
|
|
|
|
|
|
|
|
var builder = new WasmModuleBuilder();
|
|
|
|
builder.addFunction(undefined, kSig_i_i)
|
2020-09-10 12:39:52 +00:00
|
|
|
.addLocals(kWasmI32, 0xffffffff)
|
2018-03-08 14:39:47 +00:00
|
|
|
.addBody([]);
|
|
|
|
assertThrows(() => builder.instantiate(), WebAssembly.CompileError);
|