#include "third_party/blink/renderer/bindings/core/v8/script_evaluation_result.h"
#include "base/feature_list.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/script/script_type.mojom-blink.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/bindings/script_state.h"
namespace blink {
ScriptEvaluationResult::ScriptEvaluationResult(
mojom::blink::ScriptType script_type,
ResultType result_type,
v8::Local<v8::Value> value)
: … { … }
ScriptEvaluationResult ScriptEvaluationResult::FromClassicNotRun() { … }
ScriptEvaluationResult ScriptEvaluationResult::FromModuleNotRun() { … }
ScriptEvaluationResult ScriptEvaluationResult::FromClassicSuccess(
v8::Local<v8::Value> value) { … }
ScriptEvaluationResult ScriptEvaluationResult::FromModuleSuccess(
v8::Local<v8::Value> value) { … }
ScriptEvaluationResult ScriptEvaluationResult::FromClassicExceptionRethrown() { … }
ScriptEvaluationResult ScriptEvaluationResult::FromClassicException(
v8::Local<v8::Value> exception) { … }
ScriptEvaluationResult ScriptEvaluationResult::FromModuleException(
v8::Local<v8::Value> exception) { … }
ScriptEvaluationResult ScriptEvaluationResult::FromClassicAborted() { … }
ScriptEvaluationResult ScriptEvaluationResult::FromModuleAborted() { … }
v8::Local<v8::Value> ScriptEvaluationResult::GetSuccessValue() const { … }
v8::Local<v8::Value> ScriptEvaluationResult::GetSuccessValueOrEmpty() const { … }
v8::Local<v8::Value> ScriptEvaluationResult::GetExceptionForModule() const { … }
v8::Local<v8::Value> ScriptEvaluationResult::GetExceptionForWorklet() const { … }
v8::Local<v8::Value> ScriptEvaluationResult::GetExceptionForClassicForTesting()
const { … }
ScriptPromise<IDLAny> ScriptEvaluationResult::GetPromise(
ScriptState* script_state) const { … }
}