Skip to content

Commit eb49fdd

Browse files
Blacklist Node.js 14 and 16
1 parent 43b93fa commit eb49fdd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

uws.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717

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

0 commit comments

Comments
 (0)