src: initialize pid variable before goto
This fixes an error when compiling with clang-cl on Windows:
```
src/node.cc(2437,5): error: jump from this goto statement to its label is a Microsoft extension [-Werror,-Wmicrosoft-goto]
goto out;
^
src/node.cc(2441,9): note: jump bypasses variable initialization
DWORD pid = args[0].As<Integer>()->Value();
^
```
PR-URL: https://github.com/nodejs/node/pull/22961
Reviewed-By:
James M Snell <jasnell@gmail.com>
Reviewed-By:
Denys Otrishko <shishugi@gmail.com>
Reviewed-By:
Tobias Nießen <tniessen@tnie.de>
Reviewed-By:
Richard Lau <riclau@uk.ibm.com>
Reviewed-By:
Colin Ihrig <cjihrig@gmail.com>
Reviewed-By:
Anna Henningsen <anna@addaleax.net>
Reviewed-By:
Joyee Cheung <joyeec9h3@gmail.com>
parent
0140a98e
Please register or sign in to comment