-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Misplaced/dead Windows code in node.cc? #52404
Copy link
Copy link
Closed
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Metadata
Metadata
Assignees
Labels
buildIssues and PRs related to build files or the CI.Issues and PRs related to build files or the CI.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
In
node/src/node.cc
Lines 633 to 640 in 756acd0
The problem is that this code is inside a
#ifdef __POSIX__section:node/src/node.cc
Line 553 in 756acd0
This seems to be unexpected dead code for Windows.
I found this from a compiler warning:
src\node.cc(428,13): warning : unused function 'TrapWebAssemblyOrContinue' [-Wunused-function] [D:\Git\nodejs\node\libnode.vcxproj]