refactor: add EmitWarning(v8::Isolate*)
helper (#43736)
refactor: add `EmitWarning(v8::Isolate*)` helper (#43722) * refactor: add EmitWarning(Isolate*, ...) warning * chore: remove EmitWarning(node::Environment*, ...) * chore: add code comments * fixup! refactor: add EmitWarning(Isolate*, ...) warning * chore: remove unused node #includes
This commit is contained in:
parent
18bd295873
commit
d11c840cf0
18 changed files with 69 additions and 84 deletions
|
@ -6,17 +6,10 @@
|
|||
#define ELECTRON_SHELL_COMMON_PROCESS_UTIL_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace node {
|
||||
class Environment;
|
||||
}
|
||||
#include <string_view>
|
||||
|
||||
namespace electron {
|
||||
|
||||
void EmitWarning(node::Environment* env,
|
||||
const std::string& warning_msg,
|
||||
const std::string& warning_type);
|
||||
|
||||
std::string GetProcessType();
|
||||
|
||||
bool IsBrowserProcess();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue