GeezerVison is showing github.com — src: avoid using elevated v8 namespaces in node_errors.h · nodejs/node@9600332
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_errors.h +4-8Lines changed: 4 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
12 | 12 |
|
13 | 13 | namespace node { |
14 | 14 |
|
15 | | -using v8::Local; |
16 | | -using v8::Message; |
17 | | -using v8::Value; |
18 | | - |
19 | 15 | enum ErrorHandlingMode { CONTEXTIFY_ERROR, FATAL_ERROR, MODULE_ERROR }; |
20 | 16 | void AppendExceptionLine(Environment* env, |
21 | | - Local<Value> er, |
22 | | - Local<Message> message, |
| 17 | + v8::Local<v8::Value> er, |
| 18 | + v8::Local<v8::Message> message, |
23 | 19 | enum ErrorHandlingMode mode); |
24 | 20 |
|
25 | 21 | [[noreturn]] void FatalError(const char* location, const char* message); |
@@ -195,8 +191,8 @@ class TryCatchScope : public v8::TryCatch { |
195 | 191 | void TriggerUncaughtException(v8::Isolate* isolate, |
196 | 192 | const v8::TryCatch& try_catch); |
197 | 193 | 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, |
200 | 196 | bool from_promise = false); |
201 | 197 |
|
202 | 198 | const char* errno_string(int errorno); |
|