mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
src: avoid using elevated v8 namespaces in node_errors.h
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/32468 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
committed by
Anna Henningsen
parent
23a34089aa
commit
04c9a983de
@@ -12,14 +12,10 @@
|
||||
|
||||
namespace node {
|
||||
|
||||
using v8::Local;
|
||||
using v8::Message;
|
||||
using v8::Value;
|
||||
|
||||
enum ErrorHandlingMode { CONTEXTIFY_ERROR, FATAL_ERROR, MODULE_ERROR };
|
||||
void AppendExceptionLine(Environment* env,
|
||||
Local<Value> er,
|
||||
Local<Message> message,
|
||||
v8::Local<v8::Value> er,
|
||||
v8::Local<v8::Message> message,
|
||||
enum ErrorHandlingMode mode);
|
||||
|
||||
[[noreturn]] void FatalError(const char* location, const char* message);
|
||||
@@ -195,8 +191,8 @@ class TryCatchScope : public v8::TryCatch {
|
||||
void TriggerUncaughtException(v8::Isolate* isolate,
|
||||
const v8::TryCatch& try_catch);
|
||||
void TriggerUncaughtException(v8::Isolate* isolate,
|
||||
Local<Value> error,
|
||||
Local<Message> message,
|
||||
v8::Local<v8::Value> error,
|
||||
v8::Local<v8::Message> message,
|
||||
bool from_promise = false);
|
||||
|
||||
const char* errno_string(int errorno);
|
||||
|
||||
Reference in New Issue
Block a user