perf_hooks: refactor to avoid unsafe array iteration#36723
Closed
aduh95 wants to merge 1 commit intonodejs:masterfrom
Closed
perf_hooks: refactor to avoid unsafe array iteration#36723aduh95 wants to merge 1 commit intonodejs:masterfrom
aduh95 wants to merge 1 commit intonodejs:masterfrom
Conversation
jasnell
approved these changes
Jan 2, 2021
Trott
reviewed
Jan 2, 2021
| } | ||
|
|
||
| class ELDHistogram extends Histogram { | ||
| constructor(i) { super(i); } // eslint-disable-line no-useless-constructor |
Member
There was a problem hiding this comment.
I know this has been discussed elsewhere but I can't remember the reason we're doing this.
Contributor
Author
There was a problem hiding this comment.
Yeah, that's a bug in the ECMAScript spec, it should be fixed by tc39/ecma262#2216.
Relevant spec section: https://tc39.es/ecma262/#sec-runtime-semantics-classdefinitionevaluation
If constructor is empty, then
If ClassHeritageopt is present, then
Let constructorText be the source text
constructor(...args) { super(...args); }
Trott
approved these changes
Jan 2, 2021
Collaborator
Contributor
|
Landed in 7c76762...5ad67a7 |
nodejs-github-bot
pushed a commit
that referenced
this pull request
Jan 4, 2021
PR-URL: #36723 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
danielleadams
pushed a commit
that referenced
this pull request
Jan 12, 2021
PR-URL: #36723 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Merged
targos
pushed a commit
that referenced
this pull request
May 25, 2021
PR-URL: #36723 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
targos
pushed a commit
that referenced
this pull request
Jun 5, 2021
PR-URL: #36723 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
targos
pushed a commit
that referenced
this pull request
Jun 11, 2021
PR-URL: #36723 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes