#include "include/v8-function.h"
#include "src/api/api-inl.h"
#include "src/base/strings.h"
#include "test/cctest/test-api.h"
Array;
Context;
Local;
ObjectTemplate;
String;
TryCatch;
Value;
static v8::MaybeLocal<Value> PrepareStackTrace42(v8::Local<Context> context,
v8::Local<Value> error,
v8::Local<Array> trace) { … }
static v8::MaybeLocal<Value> PrepareStackTraceThrow(v8::Local<Context> context,
v8::Local<Value> error,
v8::Local<Array> trace) { … }
THREADED_TEST(IsolatePrepareStackTrace) { … }
THREADED_TEST(IsolatePrepareStackTraceThrow) { … }
static void ThrowV8Exception(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
THREADED_TEST(ExceptionCreateMessage) { … }
TEST(StackTrace) { … }
static void checkStackFrame(const char* expected_script_name,
const char* expected_script_source,
const char* expected_script_source_mapping_url,
const char* expected_func_name,
int expected_line_number, int expected_column,
bool is_eval, bool is_constructor,
v8::Local<v8::StackFrame> frame) { … }
const char* overview_source_eval = …;
const char* overview_source = …;
const char* detailed_source = …;
const char function_name_source[] = …;
const char function_name_source_anon3[] = …;
const char function_name_source_anon4[] = …;
const char function_name_source_anon5[] = …;
static void AnalyzeStackInNativeCode(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
THREADED_TEST(CaptureStackTrace) { … }
static int report_count = …;
const char uncaught_exception_source[] = …;
static void StackTraceForUncaughtExceptionListener(
v8::Local<v8::Message> message, v8::Local<Value>) { … }
TEST(CaptureStackTraceForUncaughtException) { … }
const char uncaught_setter_exception_source[] = …;
static void StackTraceForUncaughtExceptionAndSettersListener(
v8::Local<v8::Message> message, v8::Local<Value> value) { … }
TEST(CaptureStackTraceForUncaughtExceptionAndSetters) { … }
const char functions_with_function_name[] = …;
const char functions_with_function_name_caller[] = …;
static void StackTraceFunctionNameListener(v8::Local<v8::Message> message,
v8::Local<Value>) { … }
TEST(GetStackTraceContainsFunctionsWithFunctionName) { … }
static void RethrowStackTraceHandler(v8::Local<v8::Message> message,
v8::Local<v8::Value> data) { … }
TEST(RethrowStackTrace) { … }
static void RethrowPrimitiveStackTraceHandler(v8::Local<v8::Message> message,
v8::Local<v8::Value> data) { … }
TEST(RethrowPrimitiveStackTrace) { … }
static void RethrowExistingStackTraceHandler(v8::Local<v8::Message> message,
v8::Local<v8::Value> data) { … }
TEST(RethrowExistingStackTrace) { … }
static void RethrowBogusErrorStackTraceHandler(v8::Local<v8::Message> message,
v8::Local<v8::Value> data) { … }
TEST(RethrowBogusErrorStackTrace) { … }
void AnalyzeStackOfEvalWithSourceURL(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(SourceURLInStackTrace) { … }
static int scriptIdInStack[2];
void AnalyzeScriptIdInStack(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(ScriptIdInStackTrace) { … }
void AnalyzeStackOfInlineScriptWithSourceURL(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(InlineScriptWithSourceURLInStackTrace) { … }
void AnalyzeStackOfDynamicScriptWithSourceURL(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(DynamicWithSourceURLInStackTrace) { … }
TEST(DynamicWithSourceURLInStackTraceString) { … }
UNINITIALIZED_TEST(CaptureStackTraceForStackOverflow) { … }
void AnalyzeScriptNameInStack(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(CurrentScriptNameOrSourceURL_Name) { … }
void AnalyzeScriptURLInStack(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
TEST(CurrentScriptNameOrSourceURL_SourceURL) { … }