Use node::NodePlatform instead of v8::platform in atom::NodeDebugger
This commit is contained in:
parent
ad732b45d2
commit
1cf95d2a26
3 changed files with 7 additions and 6 deletions
|
@ -36,7 +36,10 @@ void NodeDebugger::Start() {
|
|||
if (options.inspector_enabled()) {
|
||||
// Use custom platform since the gin platform does not work correctly
|
||||
// with node's inspector agent
|
||||
platform_.reset(v8::platform::CreateDefaultPlatform());
|
||||
platform_.reset(new node::NodePlatform(
|
||||
/* thread_pool_size */ 0,
|
||||
env_->event_loop(),
|
||||
/* tracing_controller */ nullptr));
|
||||
|
||||
// Set process._debugWaitConnect if --inspect-brk was specified to stop
|
||||
// the debugger on the first line
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue