Skip to content

Why ...args isn't transpiled to Array.prototype.slice.call(arguments)? #12667

Answered by nicolo-ribaudo
wojtekmaj asked this question in Q&A
Discussion options

You must be logged in to vote

IIRC one reason is that passing arguments to another function causes a perf drop in some V8 versions.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@wojtekmaj
Comment options

Comment options

You must be logged in to vote
1 reply
@nicolo-ribaudo
Comment options

Answer selected by JLHwung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants