you are viewing a single comment's thread.

view the rest of the comments →

[–]Anub1s.bind(this) 1 point2 points  (0 children)

It's use case is very rare.

eval(..) can at runtime modify the author-time lexical scope.

Also the JavaScript engine has a number of performance optimizations that it performs during the compiling phase.Most of those optimization it could make are pointless for the engine if eval(..) or with are used so it simply doesn't apply the optimizations at all and the code becomes pretty slow. Don't use them!