| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Instead of FunctionPrototypeApply, this should use ReflectApply, which doesn’t go through the uncurryThis closure:
node/lib/internal/per_context/primordials.js
Lines 22 to 24 in 802c98d
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
I just realized there are some unnecessary whitespace changes.
Sorry, something went wrong.
|
Needs a rebase. |
Sorry, something went wrong.
Sorry, something went wrong.
This replaces all Function.prototype.apply, Function.prototype.bind, Function.prototype.call to their primordials alter ego.
|
I'm going to split it into smaller PRs, that's too many files to review for a single PR of that kind. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This replaces all instances of Function.prototype.apply, Function.prototype.bind, and Function.prototype.call to their primordials alter ego.
I've used search and replace to make this PR, I've excluded changes in files that are already covered by other PRs (#35885, #35875, #35734). No test is being affected by this PR.
ReflectApply is used to replace Function.prototype.apply because it has less overhead (see #35838 (review)). There is an argument to be made that all Function.prototype.call calls could also be replaced by ReflectApply, but that's not done in this PR.
Checklist