You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm working on pull request for #16178, I noticed that limited usage of certain ES2015+ features in lib/**/*.js code. My thoughts were confirmed while reading doc/guides/writing-tests.md.
For performance considerations, we only use a selected subset of ES.Next features in JavaScript code in the lib directory.
I think that publishing guide "what is preferred in codebase" would be preferred, because I was not able any description of such "selected subset".
Things that I would like to see:
class vs. util.inherits
closures
_* modules - what is difference between them and internal/* modules?
const vs. var vs. let
arrow functions
The text was updated successfully, but these errors were encountered:
Many of these issues are now handled by our lint rules.
It seems like perhaps this should be closed. Feel free to re-open (or leave a comment requesting that it be re-opened) if you disagree. I'm just tidying up and not acting on a super-strong opinion or anything like that.
As I'm working on pull request for #16178, I noticed that limited usage of certain ES2015+ features in
lib/**/*.js
code. My thoughts were confirmed while readingdoc/guides/writing-tests.md
.I think that publishing guide "what is preferred in codebase" would be preferred, because I was not able any description of such "selected subset".
Things that I would like to see:
class
vs.util.inherits
_*
modules - what is difference between them andinternal/*
modules?const
vs.var
vs.let
The text was updated successfully, but these errors were encountered: