chromium/v8/test/unittests/api/exception-unittest.cc

// Copyright 2017 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.

#include "include/v8-context.h"
#include "include/v8-exception.h"
#include "include/v8-isolate.h"
#include "include/v8-local-handle.h"
#include "include/v8-persistent-handle.h"
#include "include/v8-template.h"
#include "src/flags/flags.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace v8 {
namespace {

class APIExceptionTest : public TestWithIsolate {};

class V8_NODISCARD ScopedExposeGc {};

TEST_F(APIExceptionTest, ExceptionMessageDoesNotKeepContextAlive) {}

TEST_F(APIExceptionTest, TryCatchCustomException) {}

class TryCatchNestedTest : public TestWithIsolate {};

TEST_F(TryCatchNestedTest, TryCatchNested) {}

TEST_F(APIExceptionTest, TryCatchFinallyUsingTryCatchHandler) {}

TEST_F(APIExceptionTest, TryFinallyMessage) {}

// Test that a try-finally block doesn't shadow a try-catch block
// when setting up an external handler.
//
// BUG(271): Some of the exception propagation does not work on the
// ARM simulator because the simulator separates the C++ stack and the
// JS stack.  This test therefore fails on the simulator.  The test is
// not threaded to allow the threading tests to run on the simulator.
TEST_F(APIExceptionTest, TryCatchInTryFinally) {}

TEST_F(APIExceptionTest, TryCatchFinallyStoresMessageUsingTryCatchHandler) {}

}  // namespace
}  // namespace v8