summaryrefslogtreecommitdiff
path: root/deps/v8/test/wasm-api-tests/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/wasm-api-tests/traps.cc')
-rw-r--r--deps/v8/test/wasm-api-tests/traps.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/deps/v8/test/wasm-api-tests/traps.cc b/deps/v8/test/wasm-api-tests/traps.cc
index adee567c50..e5f71a13aa 100644
--- a/deps/v8/test/wasm-api-tests/traps.cc
+++ b/deps/v8/test/wasm-api-tests/traps.cc
@@ -66,13 +66,8 @@ TEST_F(WasmCapiTest, Traps) {
// Use internal machinery to parse the module to find the function offsets.
// This makes the test more robust than hardcoding them.
- i::Isolate* isolate =
- reinterpret_cast<::wasm::StoreImpl*>(store())->i_isolate();
- ModuleResult result = DecodeWasmModule(
- WasmFeatures::All(), wire_bytes()->begin(), wire_bytes()->end(), false,
- ModuleOrigin::kWasmOrigin, isolate->counters(),
- isolate->metrics_recorder(), v8::metrics::Recorder::ContextId::Empty(),
- DecodingMethod::kSync, GetWasmEngine()->allocator());
+ ModuleResult result = DecodeWasmModule(WasmFeatures::All(), wire_bytes(),
+ false, ModuleOrigin::kWasmOrigin);
ASSERT_TRUE(result.ok());
const WasmFunction* func1 = &result.value()->functions[1];
const WasmFunction* func2 = &result.value()->functions[2];