|  | 
| 99 | 99 | #if defined(_MSC_VER) | 
| 100 | 100 | #include <direct.h> | 
| 101 | 101 | #include <io.h> | 
| 102 |  | -#define getpid GetCurrentProcessId | 
| 103 | 102 | #define umask _umask | 
| 104 | 103 | typedef int mode_t; | 
| 105 | 104 | #else | 
| @@ -1995,13 +1994,8 @@ NO_RETURN void Assert(const char* const (*args)[4]) { | 
| 1995 | 1994 |   if (uv_exepath(exepath, &exepath_size)) | 
| 1996 | 1995 |     snprintf(exepath, sizeof(exepath), "node"); | 
| 1997 | 1996 | 
 | 
| 1998 |  | -  char pid[12] = {0}; | 
| 1999 |  | -#ifndef _WIN32 | 
| 2000 |  | -  snprintf(pid, sizeof(pid), "[%u]", getpid()); | 
| 2001 |  | -#endif | 
| 2002 |  | - | 
| 2003 |  | -  fprintf(stderr, "%s%s: %s:%s:%s%s Assertion `%s' failed.\n", | 
| 2004 |  | -          exepath, pid, filename, linenum, | 
|  | 1997 | +  fprintf(stderr, "%s[%u]: %s:%s:%s%s Assertion `%s' failed.\n", | 
|  | 1998 | +          exepath, GetProcessId(), filename, linenum, | 
| 2005 | 1999 |           function, *function ? ":" : "", message); | 
| 2006 | 2000 |   fflush(stderr); | 
| 2007 | 2001 | 
 | 
| @@ -3532,7 +3526,8 @@ void SetupProcessObject(Environment* env, | 
| 3532 | 3526 |       process_env_template->NewInstance(env->context()).ToLocalChecked(); | 
| 3533 | 3527 |   process->Set(FIXED_ONE_BYTE_STRING(env->isolate(), "env"), process_env); | 
| 3534 | 3528 | 
 | 
| 3535 |  | -  READONLY_PROPERTY(process, "pid", Integer::New(env->isolate(), getpid())); | 
|  | 3529 | +  READONLY_PROPERTY(process, "pid", | 
|  | 3530 | +                    Integer::New(env->isolate(), GetProcessId())); | 
| 3536 | 3531 |   READONLY_PROPERTY(process, "features", GetFeatures(env)); | 
| 3537 | 3532 | 
 | 
| 3538 | 3533 |   CHECK(process->SetAccessor(env->context(), | 
|  | 
0 commit comments