nodejs/deps/v8/test/mjsunit/regress/wasm/regress-1380646.js
Michaël Zasso 17a74ddd3d
deps: update V8 to 11.8.172.13
PR-URL: https://github.com/nodejs/node/pull/49639
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-10-10 08:25:41 +02:00

29 lines
696 B
JavaScript

// Copyright 2022 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: --no-liftoff
d8.file.execute("test/mjsunit/wasm/wasm-module-builder.js");
let builder = new WasmModuleBuilder();
builder.addMemory(16, 17);
builder.addTag(kSig_v_f);
builder.addFunction('func1', kSig_v_v)
.addBody([
kExprLoop, 0x40,
kExprTry, 0x40,
kExprF32Const, 0x81, 0xe2, 0xa0, 0x7a,
kExprThrow, 0x00,
kExprCatchAll,
kExprEnd,
kExprEnd,
kExprI32Const, 0x3b,
kExprI64Const, 0x3b,
kExprI64StoreMem, 0x01, 0x80, 0xfe, 0xff, 0x6f]);
builder.instantiate();