Skip to content

Commit b9394a2

Browse files
authored
fix: ci error with node-v13.6.0 on windows (#46)
Ref: nodejs/node#30556
2 parents d0cf7c1 + 14dd94b commit b9394a2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/xctl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ async function createMessageConnection(pid, xprofilerPath, message) {
101101

102102
message = JSON.stringify(message);
103103

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

src/logger.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ using v8::String;
2525
uv_mutex_lock(&logger_mutex); \
2626
type##_stream.open(filepath, std::ios::app); \
2727
type##_stream << log; \
28-
type##_stream.flush(); \
2928
type##_stream.close(); \
3029
uv_mutex_unlock(&logger_mutex);
3130

0 commit comments

Comments
 (0)