b721e15720
The flag was enabled by default in M85, it is time to remove it. R=clemensb@chromium.org Bug: v8:7741, chromium:1160677 Change-Id: Ic4a9490efa645a7466cb844484169ab262f0df38 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2610965 Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#71945}
38 lines
855 B
JavaScript
38 lines
855 B
JavaScript
// Copyright 2019 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");
|
|
|
|
(function TestWasmI64ToJSBigIntImportedFunc() {
|
|
var builder = new WasmModuleBuilder();
|
|
|
|
var a_index = builder
|
|
.addImport("a", "a", kSig_l_l) // i64 -> i64
|
|
|
|
builder
|
|
.addFunction("fn", kSig_l_v) // () -> i64
|
|
.addBody([
|
|
kExprI64Const, 0x7,
|
|
kExprCallFunction, a_index
|
|
])
|
|
.exportFunc();
|
|
|
|
a_was_called = false;
|
|
|
|
var module = builder.instantiate({
|
|
a: {
|
|
a(param) {
|
|
assertEquals(typeof param, "bigint");
|
|
assertEquals(param, 7n);
|
|
a_was_called = true;
|
|
return 12n;
|
|
},
|
|
}
|
|
});
|
|
|
|
assertEquals(module.exports.fn(), 12n);
|
|
|
|
assertTrue(a_was_called);
|
|
})();
|