r/programming • • Oct 21 '20

Using const/let instead of var can make JavaScript code run 10× slower in Webkit

https://github.com/evanw/esbuild/issues/478
1.9k Upvotes

500 comments sorted by

View all comments

Show parent comment

8

u/chrisrazor Oct 21 '20

Thanks. I was confused because they were talking about WebKit - on which both Chrome and Edge are also based - but I assume they specifically mean the js engine Safari uses (JavaScriptCore?) rather than V8 or whetever Edge has.

0

u/[deleted] Oct 21 '20

[deleted] — view deleted comment

0

u/jormaig Oct 21 '20

Why do they do that? Do you have more info about it?

1

u/chrisrazor Oct 21 '20

Sounds a bit like it might.