From fb5e20c2d0deac9b7decbae6b5ccceb2856b39ba Mon Sep 17 00:00:00 2001 From: alexhultman-2fa <58995996+alexhultman-2fa@users.noreply.github.com> Date: Sat, 10 Apr 2021 22:43:31 +0200 Subject: [PATCH] Add files via upload --- uws.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/uws.js b/uws.js index 079baea5..f7658c82 100644 --- a/uws.js +++ b/uws.js @@ -1,5 +1,5 @@ /* - * Authored by Alex Hultman, 2018-2020. + * Authored by Alex Hultman, 2018-2021. * Intellectual property of third-party. * Licensed under the Apache License, Version 2.0 (the "License"); @@ -17,15 +17,7 @@ module.exports = (() => { try { - const uWS = require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); - if (process.env.EXPERIMENTAL_FASTCALL) { - process.nextTick = (f, ...args) => { - Promise.resolve().then(() => { - f(...args); - }); - }; - } - return uWS; + return require('./uws_' + process.platform + '_' + process.arch + '_' + process.versions.modules + '.node'); } catch (e) { throw new Error('This version of µWS is not compatible with your Node.js build:\n\n' + e.toString()); }