diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-07-14 11:30:07 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-07-20 15:24:51 +0200 |
commit | 6cdd310275bb0f8056aa0ae6d95614e9ca5b70c7 (patch) | |
tree | 9ed37b19cd668894854b7f469010f7621e63ef81 /deps/v8/test/inspector/inspector-test.cc | |
parent | c0f10006c82d2d9896a552de98ed146f9542720d (diff) | |
download | node-new-6cdd310275bb0f8056aa0ae6d95614e9ca5b70c7.tar.gz |
deps: update V8 to 9.2.230.21
PR-URL: https://github.com/nodejs/node/pull/38990
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/test/inspector/inspector-test.cc')
-rw-r--r-- | deps/v8/test/inspector/inspector-test.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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 <unistd.h> // NOLINT -#endif // !defined(_WIN32) && !defined(_WIN64) +#include <unistd.h> +#endif // !defined(_WIN32) && !defined(_WIN64) #include <locale.h> @@ -128,7 +128,7 @@ class UtilsExtension : public IsolateData::SetupGlobalTask { v8::Local<v8::String> str_obj; if (arg->IsSymbol()) { - arg = v8::Local<v8::Symbol>::Cast(arg)->Description(); + arg = v8::Local<v8::Symbol>::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<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Isolate* isolate = info.GetIsolate(); - isolate->ThrowException(ToV8String(isolate, "Getter is called")); + isolate->ThrowError("Getter is called"); } static void AccessorSetter(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) { v8::Isolate* isolate = info.GetIsolate(); - isolate->ThrowException(ToV8String(isolate, "Setter is called")); + isolate->ThrowError("Setter is called"); } static void StoreCurrentStackTrace( |