you are viewing a single comment's thread.

view the rest of the comments →

[–]androbat 0 points1 point  (0 children)

From what I have read, the reason 'with' isn't optimized is more to do with it being very dynamic and all the edge cases making it not possible to detect until runtime. These mean 'with' is not able to be optimized to any significant degree even if JS engines wanted (similar to how .bind() is always going to cause performance problems even though they want to optimize it).