| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,7 +37,7 @@ inline v8::Maybe<bool> ProcessEmitWarning(Environment* env, | |||
| 37 | 37 | const char* fmt, | |
| 38 | 38 | Args&&... args); | |
| 39 | 39 | ||
| 40 | - v8::Maybe<bool> ProcessEmitWarningSync(Environment* env, | ||
| 40 | + v8::Maybe<void> ProcessEmitWarningSync(Environment* env, | ||
| 41 | 41 | std::string_view message); | |
| 42 | 42 | v8::Maybe<bool> ProcessEmitExperimentalWarning(Environment* env, | |
| 43 | 43 | const std::string& warning); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ using v8::Function; | |||
| 10 | 10 | using v8::HandleScope; | |
| 11 | 11 | using v8::Isolate; | |
| 12 | 12 | using v8::Just; | |
| 13 | + using v8::JustVoid; | ||
| 13 | 14 | using v8::Local; | |
| 14 | 15 | using v8::Maybe; | |
| 15 | 16 | using v8::MaybeLocal; | |
@@ -19,7 +20,7 @@ using v8::Object; | |||
| 19 | 20 | using v8::String; | |
| 20 | 21 | using v8::Value; | |
| 21 | 22 | ||
| 22 | - Maybe<bool> ProcessEmitWarningSync(Environment* env, std::string_view message) { | ||
| 23 | + Maybe<void> ProcessEmitWarningSync(Environment* env, std::string_view message) { | ||
| 23 | 24 | Isolate* isolate = env->isolate(); | |
| 24 | 25 | Local<Context> context = env->context(); | |
| 25 | 26 | Local<String> message_string; | |
@@ -28,7 +29,7 @@ Maybe<bool> ProcessEmitWarningSync(Environment* env, std::string_view message) { | |||
| 28 | 29 | NewStringType::kNormal, | |
| 29 | 30 | static_cast<int>(message.size())) | |
| 30 | 31 | .ToLocal(&message_string)) { | |
| 31 | - return Nothing<bool>(); | ||
| 32 | + return Nothing<void>(); | ||
| 32 | 33 | } | |
| 33 | 34 | ||
| 34 | 35 | Local<Value> argv[] = {message_string}; | |
@@ -39,9 +40,9 @@ Maybe<bool> ProcessEmitWarningSync(Environment* env, std::string_view message) { | |||
| 39 | 40 | if (emit_function.As<Function>() | |
| 40 | 41 | ->Call(context, v8::Undefined(isolate), arraysize(argv), argv) | |
| 41 | 42 | .IsEmpty()) { | |
| 42 | - return Nothing<bool>(); | ||
| 43 | + return Nothing<void>(); | ||
| 43 | 44 | } | |
| 44 | - return Just(true); | ||
| 45 | + return JustVoid(); | ||
| 45 | 46 | } | |
| 46 | 47 | ||
| 47 | 48 | MaybeLocal<Value> ProcessEmit(Environment* env, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments