doc: add note regarding %Array.prototype.concat% in primordials.md#43166
Conversation
|
Review requested:
|
Co-authored-by: Livia Medeiros <74449973+LiviaMedeiros@users.noreply.github.com>
RaisinTen
left a comment
There was a problem hiding this comment.
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 <raisinten@gmail.com>
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 |
mcollina
left a comment
There was a problem hiding this comment.
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 <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
I mean, node/doc/contributing/primordials.md Line 118 in 52ba02e IIRC, |
PR-URL: nodejs#43166 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: #43166 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
PR-URL: nodejs/node#43166 Reviewed-By: LiviaMedeiros <livia@cirno.name> Reviewed-By: Darshan Sen <raisinten@gmail.com>
No description provided.