From 6cdd310275bb0f8056aa0ae6d95614e9ca5b70c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 14 Jul 2021 11:30:07 +0200 Subject: deps: update V8 to 9.2.230.21 PR-URL: https://github.com/nodejs/node/pull/38990 Reviewed-By: Jiawen Geng Reviewed-By: Matteo Collina Reviewed-By: Robert Nagy Reviewed-By: Colin Ihrig --- deps/v8/test/inspector/inspector-test.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'deps/v8/test/inspector/inspector-test.cc') diff --git a/deps/v8/test/inspector/inspector-test.cc b/deps/v8/test/inspector/inspector-test.cc index bc785e919d..ce3caf7661 100644 --- a/deps/v8/test/inspector/inspector-test.cc +++ b/deps/v8/test/inspector/inspector-test.cc @@ -3,8 +3,8 @@ // found in the LICENSE file. #if !defined(_WIN32) && !defined(_WIN64) -#include // NOLINT -#endif // !defined(_WIN32) && !defined(_WIN64) +#include +#endif // !defined(_WIN32) && !defined(_WIN64) #include @@ -128,7 +128,7 @@ class UtilsExtension : public IsolateData::SetupGlobalTask { v8::Local str_obj; if (arg->IsSymbol()) { - arg = v8::Local::Cast(arg)->Description(); + arg = v8::Local::Cast(arg)->Description(args.GetIsolate()); } if (!arg->ToString(args.GetIsolate()->GetCurrentContext()) .ToLocal(&str_obj)) { @@ -171,7 +171,7 @@ class UtilsExtension : public IsolateData::SetupGlobalTask { std::string filename(*str, str.length()); *chars = v8::internal::ReadFile(filename.c_str(), &exists); if (!exists) { - isolate->ThrowException(ToV8String(isolate, "Error reading file")); + isolate->ThrowError("Error reading file"); return false; } return true; @@ -632,14 +632,14 @@ class InspectorExtension : public IsolateData::SetupGlobalTask { static void AccessorGetter(v8::Local property, const v8::PropertyCallbackInfo& info) { v8::Isolate* isolate = info.GetIsolate(); - isolate->ThrowException(ToV8String(isolate, "Getter is called")); + isolate->ThrowError("Getter is called"); } static void AccessorSetter(v8::Local property, v8::Local value, const v8::PropertyCallbackInfo& info) { v8::Isolate* isolate = info.GetIsolate(); - isolate->ThrowException(ToV8String(isolate, "Setter is called")); + isolate->ThrowError("Setter is called"); } static void StoreCurrentStackTrace( -- cgit v1.2.1