| Index: test/cctest/wasm/test-wasm-trap-position.cc
|
| diff --git a/test/cctest/wasm/test-wasm-trap-position.cc b/test/cctest/wasm/test-wasm-trap-position.cc
|
| index 30f5d48a07be40a98b82a5218b0489fcdffe1c7b..5a7d2c2fe9c5f4a28ddcccfdfa3896250706a33e 100644
|
| --- a/test/cctest/wasm/test-wasm-trap-position.cc
|
| +++ b/test/cctest/wasm/test-wasm-trap-position.cc
|
| @@ -38,10 +38,10 @@
|
| };
|
|
|
| template <int N>
|
| -void CheckExceptionInfos(Handle<Object> exc,
|
| +void CheckExceptionInfos(Isolate* isolate, Handle<Object> exc,
|
| const ExceptionInfo (&excInfos)[N]) {
|
| // Check that it's indeed an Error object.
|
| - CHECK(exc->IsJSError());
|
| + CHECK(Object::IsErrorObject(isolate, exc));
|
|
|
| // Extract stack frame from the exception.
|
| Local<v8::Value> localExc = Utils::ToLocal(exc);
|
| @@ -93,7 +93,8 @@
|
| {"<WASM UNNAMED>", static_cast<int>(wasm_index), 2}, // --
|
| {"callFn", 1, 24} // --
|
| };
|
| - CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions);
|
| + CheckExceptionInfos(isolate, maybe_exc.ToHandleChecked(),
|
| + expected_exceptions);
|
| }
|
|
|
| // Trigger a trap for loading from out-of-bounds.
|
| @@ -135,5 +136,6 @@
|
| {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 3}, // --
|
| {"callFn", 1, 24} // --
|
| };
|
| - CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions);
|
| + CheckExceptionInfos(isolate, maybe_exc.ToHandleChecked(),
|
| + expected_exceptions);
|
| }
|
|
|