-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: add note regarding %Array.prototype.concat%
in primordials.md
#43166
doc: add note regarding %Array.prototype.concat%
in primordials.md
#43166
Conversation
Review requested:
|
Co-authored-by: Livia Medeiros <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would also be useful to specify that the first example is unsafe and the second one is safe, so that folks reading this doc could use what's used in the second example while replacing uses of ArrayPrototypeConcat
/ Array.prototype.concat
. Other than that, looks good!
Co-authored-by: Darshan Sen <[email protected]>
Commit Queue failed- Loading data for nodejs/node/pull/43166 ✔ Done loading data for nodejs/node/pull/43166 ----------------------------------- PR info ------------------------------------ Title doc: add note regarding `%Array.prototype.concat%` in `primordials.md` (#43166) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch aduh95:array-concat-prototype-tampering -> nodejs:master Labels doc, author ready, commit-queue-squash Commits 4 - doc: add note regarding `%Array.prototype.concat%` in `primordials.md` - fixup! doc: add note regarding `%Array.prototype.concat%` in `primord… - Apply suggestions from code review - Apply suggestions from code review Committers 2 - Antoine du Hamel - GitHub PR-URL: https://github.com/nodejs/node/pull/43166 Reviewed-By: LiviaMedeiros Reviewed-By: Darshan Sen ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43166 Reviewed-By: LiviaMedeiros Reviewed-By: Darshan Sen -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - Apply suggestions from code review ℹ This PR was created on Sat, 21 May 2022 10:50:31 GMT ✔ Approvals: 2 ✔ - LiviaMedeiros (@LiviaMedeiros): https://github.com/nodejs/node/pull/43166#pullrequestreview-980911633 ✔ - Darshan Sen (@RaisinTen) (TSC): https://github.com/nodejs/node/pull/43166#pullrequestreview-980961722 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2403578118 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it already noted that this will be significantly slower?
Landed in df56644 |
@mcollina Ugh, probably not. Was there a prior discussion (or measurements) about that? |
PR-URL: #43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
I mean, node/doc/contributing/primordials.md Line 118 in 52ba02e
IIRC, |
PR-URL: nodejs#43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
PR-URL: nodejs/node#43166 Reviewed-By: LiviaMedeiros <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
No description provided.