Skip to content

Commit 04c9a98

Browse files
jasnelladdaleax
authored andcommitted
src: avoid using elevated v8 namespaces in node_errors.h
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #32468 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 23a3408 commit 04c9a98

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/node_errors.h

+4-8
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212

1313
namespace node {
1414

15-
using v8::Local;
16-
using v8::Message;
17-
using v8::Value;
18-
1915
enum ErrorHandlingMode { CONTEXTIFY_ERROR, FATAL_ERROR, MODULE_ERROR };
2016
void AppendExceptionLine(Environment* env,
21-
Local<Value> er,
22-
Local<Message> message,
17+
v8::Local<v8::Value> er,
18+
v8::Local<v8::Message> message,
2319
enum ErrorHandlingMode mode);
2420

2521
[[noreturn]] void FatalError(const char* location, const char* message);
@@ -195,8 +191,8 @@ class TryCatchScope : public v8::TryCatch {
195191
void TriggerUncaughtException(v8::Isolate* isolate,
196192
const v8::TryCatch& try_catch);
197193
void TriggerUncaughtException(v8::Isolate* isolate,
198-
Local<Value> error,
199-
Local<Message> message,
194+
v8::Local<v8::Value> error,
195+
v8::Local<v8::Message> message,
200196
bool from_promise = false);
201197

202198
const char* errno_string(int errorno);

0 commit comments

Comments
 (0)