mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Remove v8debug flag no longer supported by node
This commit is contained in:
@@ -34,11 +34,6 @@ void JavascriptEnvironment::OnMessageLoopDestroying() {
|
||||
|
||||
bool JavascriptEnvironment::Initialize() {
|
||||
auto cmd = base::CommandLine::ForCurrentProcess();
|
||||
if (cmd->HasSwitch("debug-brk")) {
|
||||
// Need to be called before v8::Initialize().
|
||||
const char expose_debug_as[] = "--expose_debug_as=v8debug";
|
||||
v8::V8::SetFlagsFromString(expose_debug_as, sizeof(expose_debug_as) - 1);
|
||||
}
|
||||
|
||||
// --js-flags.
|
||||
std::string js_flags = cmd->GetSwitchValueASCII(switches::kJavaScriptFlags);
|
||||
|
||||
Reference in New Issue
Block a user