Skip to content

Commit

Permalink
fix: ci error with node-v13.6.0 on windows (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyj1991 committed Jan 17, 2020
2 parents d0cf7c1 + 14dd94b commit b9394a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/xctl.js
Expand Up @@ -101,8 +101,8 @@ async function createMessageConnection(pid, xprofilerPath, message) {

message = JSON.stringify(message);

/* istanbul ignore if */
if (!fs.existsSync(xprofilerPath)) {
/* istanbul ignore next */
if (os.platform() !== 'win32' && !fs.existsSync(xprofilerPath)) {
throw new Error(`进程 ${pid} 不存在或者没有启动 xprofiler 信令线程!`);
}

Expand Down
1 change: 0 additions & 1 deletion src/logger.cc
Expand Up @@ -25,7 +25,6 @@ using v8::String;
uv_mutex_lock(&logger_mutex); \
type##_stream.open(filepath, std::ios::app); \
type##_stream << log; \
type##_stream.flush(); \
type##_stream.close(); \
uv_mutex_unlock(&logger_mutex);

Expand Down

0 comments on commit b9394a2

Please sign in to comment.