Skip to content

Commit

Permalink
temporary changes for nodejs >v6.9 (dt)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrobel committed Jan 31, 2018
1 parent 27d34fd commit 4fb85f7
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/rtScriptNode/rtScriptNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ void rtNodeContext::createEnvironment()
exec_argv);

array_buffer_allocator->set_env(mEnv);

mIsolate->SetAbortOnUncaughtExceptionCallback(
ShouldAbortOnUncaughtException);
// disabled by dw TODO: correct it!
// mIsolate->SetAbortOnUncaughtExceptionCallback(
// ShouldAbortOnUncaughtException);
#ifdef ENABLE_DEBUG_MODE
// Start debug agent when argv has --debug
if (use_debug_agent)
Expand Down Expand Up @@ -474,21 +474,23 @@ void rtNodeContext::createEnvironment()
exec_argc,
exec_argv);

// Start debug agent when argv has --debug
if (use_debug_agent)
{
rtLogWarn("use_debug_agent\n");
StartDebug(mEnv, debug_wait_connect);
}
// disabled by dw
// // Start debug agent when argv has --debug
// if (use_debug_agent)
// {
// rtLogWarn("use_debug_agent\n");
// StartDebug(mEnv, debug_wait_connect);
// }

// Load Environment.
LoadEnvironment(mEnv);

// Enable debugger
if (use_debug_agent)
{
EnableDebug(mEnv);
}
// disabled by dw
// // Enable debugger
// if (use_debug_agent)
// {
// EnableDebug(mEnv);
// }
#endif //ENABLE_NODE_V_6_9
}

Expand Down

0 comments on commit 4fb85f7

Please sign in to comment.