Skip to content

Commit

Permalink
Blacklist Node.js 14 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Oct 11, 2022
1 parent 43b93fa commit eb49fdd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions uws.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
*/

module.exports = (() => {
if (process.versions.modules < 108) {
throw new Error("Your version of Node.js is blacklisted due to gigantic performance regressions. uWS.js will not load.");
}
try {
return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node');
} catch (e) {
Expand Down

0 comments on commit eb49fdd

Please sign in to comment.