Skip to content

Conversation

@marsonya
Copy link

@marsonya marsonya commented Feb 2, 2021

Updated benchmarks/middleware.js to use let and const instead of var
and replaced function keywords with arrow functions.

Copy link
Contributor

@rodion-arr rodion-arr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @marsonya, thanks for your PR. Unfortunately we can't accept it as express does not support es6 syntax.

@marsonya
Copy link
Author

marsonya commented Feb 2, 2021

Understood. Just out of curiosity, why doesn't express support es6 syntax?

@rodion-arr
Copy link
Contributor

In order to run on old Node.js versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants